Description Usage Arguments Examples
View source: R/pactual function.r
This function calculates pactual, a statistic discussed in Sagarin, Ambler, and Lee's (2014, Perspectives on Psychological Science, 9, 293-304) "An Ethical Approach to Peeking at Data".
1 2 |
ns |
ns refers to a vector of sample sizes that indicate the initial number of participants run (N1) followed by the number of participants in the first round of augmentation (N2), the number of participants in the second round of augmentation (N3), etc. |
pmax |
refers to the maximum p-value in the data collected thusfar such that the researcher would augment the sample with additional participants. |
pcrit |
refers to the value for determining statistical significance (typically .05). |
slices |
refers to the number of slices to divide the probability distribution (higher numbers of slices will make the calculations slower but more precise). |
tails |
refers to whether the tests are one- or two-tailed. |
indent |
is used to format the countdown when this function is called from pcrit. |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.