Description Usage Arguments Value Examples
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.
1 | samsizeplot(upp = 100, corr = 0, effect = 0, mod = FALSE)
|
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. |
Returns plots of the power curves(or significance levels) of paired and unpaired t-test in relation to the underlying sample sizes.
1 | samsizeplot(upp = 100, corr = 0.3, effect = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.