pwr_anova_unbalanced: Power and sample size to unbalanced ANOVA.

Description Usage Arguments Value Examples

View source: R/pwr_anova_unbalanced.R

Description

pwr_anova_unbalanced computes the power and the sample size to unbalanced ANOVA.

Usage

1
2
pwr_anova_unbalanced(group_means, size_means, mean, sigma,
sig_level = 0.05)

Arguments

group_means

vector where each entry is the mean of the treatment

size_means

vector where each entry is the sample size for each treatment

mean

population and general mean

sigma

populational standard deviation

sig_level

significance level (Type I error probability)

Value

pwr_anova_unbalanced returns a list with the following components:

group_means

vector where each entry is the mean of the treatment

size_means

vector where each entry is the sample size for each treatment

sigma

population standard deviation

sig_level

significance level

power_sampleSize

A tibble with number of observations n, N is the sample size and power pwr

Examples

1
2
3
# Power
pwr_anova_unbalanced(group_means  = c(21, 14, 15, 25),
size_means = c(4, 5, 6, 4), mean = 21, sigma = sqrt(2), sig_level = 0.05)

gilberto-sassi/power documentation built on July 17, 2020, 1:02 p.m.