samsizeplot: Plotting of power curves II

Description Usage Arguments Value Examples

View source: R/samsizeplot.R

Description

Plotting of estimated power curves of unpaired and paired t-test in relation to underlying sample size. In case of no actual mean difference, i.e. effect = 0, the curves represent the observed rate of type I errors and should be interpreted as the significance level of the tests.

Usage

1
samsizeplot(upp = 100, corr = 0, effect = 0, mod = FALSE)

Arguments

upp

integer. Supplies the upper limit of the sample sizes to be simulated.

corr

numeric. Supplies the underlying group correlation.

effect

numeric. Supplies the difference in means between both groups. Can be interpreted as effect size based on the fact that standard normal variates are the basis of simulation.

mod

logical. If TRUE, modified and paired t-test are compared.

Value

Returns plots of the power curves(or significance levels) of paired and unpaired t-test in relation to the underlying sample sizes.

Examples

1
samsizeplot(upp = 100, corr = 0.3, effect = 0)

AlexanderRitz/pairedpowR documentation built on March 16, 2020, 12:16 a.m.