Description Usage Arguments Value Author(s) Examples
Plot a power analysis table of effect size and power for t-test comparisons in the style of Richard Morey's jpower JAMOVI module.
1 2 3 4 5 6 7 8 9 10 11 |
n |
The proposed sample size. |
sig.level |
Significance level, or alpha. Defaults to 0.05. |
type |
The t-test type. The default is "two.sample", but other options are "paired" or "one.sample". |
alternative |
The alternative hypothesis. The default is "two.sided", but other options are "less" or "greater". |
d_unitconversion |
Unit conversion of Cohen's d. If specified as 5, for example, 5 units of change in the units of the table are considered equivalent to Cohen's d = 1. This conversion should be calculated in advance. Defaults to 1 for Cohen's d. |
d_units |
The units of the difference. Defaults to "Cohen's d". |
kable |
Should the table be presented as a |
digits |
The number of digits. |
... |
Extra input arguments for the |
A power table.
Granville J Matheson, mathesong@gmail.com
1 2 3 4 5 | # Straightforward example
pwr.t.test.table(n=25)
# More customised example
pwr.t.test.table(n=25, d_unitconversion=20, d_units="%", digits=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.