ggstatsplot (version 0.0.6)

subtitle_ggbetween_rob_anova: Making text subtitle for the robust ANOVA (between-subjects designs).

Description

Making text subtitle for the robust ANOVA (between-subjects designs).

Usage

subtitle_ggbetween_rob_anova(data, x, y, tr = 0.1, nboot = 100,
  messages = TRUE, k = 3)

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.

tr

Trim level for the mean when carrying out robust tests. If you get error stating "Standard error cannot be computed because of Winsorized variance of 0 (e.g., due to ties). Try to decrease the trimming level.", try to play around with the value of tr, which is by default set to 0.1. Lowering the value might help.

nboot

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

messages

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

k

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

Examples

Run this code
# NOT RUN {
# the following examples are not run in the manual because bootstrapping is taking too much
# time
# }
# NOT RUN {
# for reproducibility
set.seed(123)

# going with the defaults
subtitle_ggbetween_rob_anova(
  data = ggplot2::midwest,
  x = state,
  y = percbelowpoverty,
  nboot = 10
)

# changing defaults
subtitle_ggbetween_rob_anova(
  data = ggplot2::midwest,
  x = state,
  y = percollege,
  tr = 0.2,
  nboot = 10
)
# }

Run the code above in your browser using DataLab