ggstatsplot (version 0.0.10)

subtitle_anova_parametric_repeated: Making text subtitle for the within-subject anova designs.

Description

Making text subtitle for the within-subject anova designs.

Usage

subtitle_anova_parametric_repeated(data, x, y, id.variable,
  effsize.type = "unbiased", conf.level = 0.95, k = 2,
  messages = TRUE, ...)

Arguments

data

A dataframe (or a tibble) from which variables specified are to be taken. A matrix or tables will not be accepted.

x

The grouping variable from the dataframe data.

y

The response (a.k.a. outcome or dependent) variable from the dataframe data.

id.variable

The subject identification variable from the dataframe data. See example

effsize.type

Type of effect size for repeated ANOVA test. The argument can be "biased" ("partial_eta" for partial eta-squared) or "unbiased" ("omega" for omega-squared for anova)).

conf.level

Scalar between 0 and 1. If unspecified, the defaults return 95% lower and upper confidence intervals (0.95).

k

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

messages

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

...

Additional arguments.

Examples

Run this code
# NOT RUN {
# setup
set.seed(123)
library(ggstatsplot)
library(jmv)
data("bugs", package = "jmv")

# converting to long format
data_bugs <- bugs %>%
  dplyr::filter(., !is.na(LDHF) & !is.na(LDLF) & !is.na(HDLF) & !is.na(HDHF)) %>%
  tibble::as_tibble(.) %>%
  tidyr::gather(., key, value, LDLF:HDHF)

# creating the subtitle
ggstatsplot:::subtitle_anova_parametric_repeated(
  data = data_bugs,
  x = key,
  y = value,
  id.variable = Subject,
  k = 2
)
# }

Run the code above in your browser using DataLab