type_m {retrodesign} | R Documentation |
type_m
Description
Calculates type m error. Is calculated using simulation, and thus supports t distributions through the df parameter.
Usage
type_m(A, s, alpha = 0.05, df = Inf, n.sims = 10000)
Arguments
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 |
Value
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.
Examples
type_m(1,3.28)
type_m(list(.2,2,20),8.1)
[Package retrodesign version 0.2.2 Index]