ggstatsplot (version 0.0.6)

subtitle_ggbetween_anova_parametric: Making text subtitle for the between-subject anova designs.

Description

Making text subtitle for the between-subject anova designs.

Usage

subtitle_ggbetween_anova_parametric(data, x, y,
  effsize.type = "partial_omega", nboot = 100, var.equal = FALSE,
  k = 3, messages = TRUE)

Arguments

data

Dataframe from which variables specified are preferentially to be taken.

x

The grouping variable.

y

The response - a vector of length the number of rows of x.

effsize.type

Type of effect size needed for parametric tests. The argument can be "biased" ("d" for Cohen's d for t-test; "partial_eta" for partial eta-squared for anova) or "unbiased" ("g" Hedge's g for t-test; "partial_omega" for partial omega-squared for anova)).

nboot

Number of bootstrap samples for computing effect size (Default: 100).

var.equal

a logical variable indicating whether to treat the variances in the samples as equal. If TRUE, then a simple F test for the equality of means in a one-way analysis of variance is performed. If FALSE, an approximate method of Welch (1951) is used, which generalizes the commonly known 2-sample Welch test to the case of arbitrarily many samples.

k

Number of digits after decimal point (should be an integer) (Default: k = 3).

messages

Decides whether messages references, notes, and warnings are to be displayed (Default: TRUE).

Examples

Run this code
# NOT RUN {
# with defaults
subtitle_ggbetween_anova_parametric(
  data = ggplot2::msleep,
  x = vore,
  y = sleep_rem
)

# modifying the defaults
subtitle_ggbetween_anova_parametric(
  data = ggplot2::msleep,
  x = vore,
  y = sleep_rem,
  effsize.type = "partial_eta",
  k = 2,
  var.equal = TRUE,
  nboot = 10
)
# }

Run the code above in your browser using DataCamp Workspace