Skip to content

Commit

Permalink
minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Dec 12, 2023
1 parent e9c41f0 commit f4653bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions R/one-sample-test.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ one_sample_test <- function(
.f <- stats::t.test
# styler: off
if (effsize.type %in% c("unbiased", "g")) .f.es <- effectsize::hedges_g
if (effsize.type %in% c("biased", "d")) .f.es <- effectsize::cohens_d
if (effsize.type %in% c("biased", "d")) .f.es <- effectsize::cohens_d
# styler: on
}

# non-parametric ---------------------------------------


if (type == "nonparametric") c(.f, .f.es) %<-% c(stats::wilcox.test, effectsize::rank_biserial)

if (type %in% c("parametric", "nonparametric")) {
Expand Down
10 changes: 5 additions & 5 deletions R/oneway-anova.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ oneway_anova <- function(

# styler: off
if (effsize.type %in% c("unbiased", "omega")) .f.es <- effectsize::omega_squared
if (effsize.type %in% c("biased", "eta")) .f.es <- effectsize::eta_squared
if (effsize.type %in% c("biased", "eta")) .f.es <- effectsize::eta_squared
# styler: on

if (paired) {
Expand Down Expand Up @@ -224,10 +224,10 @@ oneway_anova <- function(

if (paired) {
mod <- WRS2::rmanova(
y = data[[as_name(y)]],
groups = data[[as_name(x)]],
blocks = data[[".rowid"]],
tr = tr
y = data[[as_name(y)]],
groups = data[[as_name(x)]],
blocks = data[[".rowid"]],
tr = tr
)
}

Expand Down

0 comments on commit f4653bf

Please sign in to comment.