View source: R/simple_hypothesis_tests.R
retrodesign.numeric | R Documentation |
retrodesign.numeric is the S3 method of the generic retrodesign() function, used when a single numeric is passed for A. Martijn Weterings kindly provided code to slightly improve this in the very low N case using the non-central t-distribution.
## S3 method for class 'numeric'
retrodesign(A, s, alpha = 0.05, df = Inf, n.sims = 10000)
A |
a numeric, an estimate of the true effect size |
s |
a numeric, standard error of the estimate |
alpha |
a numeric, the statistical significance threshold |
df |
a numeric, the degrees of freedom. df=Inf is equivalent to a normal distribution. |
n.sims |
a numeric, how many times to simulate when calculating Type M error |
A list of length 3 containing the power, type s, and type M error.
retrodesign(1,3.28)
retrodesign(2,8.1)
retrodesign(.5,1,df=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.