type_m | R Documentation |
Calculates type m error. Is calculated using simulation, and thus supports t distributions through the df parameter.
type_m(A, s, alpha = 0.05, df = Inf, n.sims = 10000)
A |
a numeric or list, estimate(s) of the true effect size |
s |
a numeric, standard error of the estimate |
alpha |
a numeric, the statistical significance threshold |
df |
a numeric, the number of 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 |
either the type m error, a numeric if a single A is provided, or a df of length 2 by A, with the effect size and corresponding type m error in each row.
type_m(1,3.28)
type_m(list(.2,2,20),8.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.