type_m.numeric {retrodesign} | R Documentation |
Numeric type_m
Description
this is the S3 method of the generic type_m() function, used when a numeric is passed for A.
Usage
## S3 method for class 'numeric'
type_m(A, s, alpha = 0.05, df = Inf, n.sims = 1e+05)
Arguments
A |
a numeric, 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 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, 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)
[Package retrodesign version 0.2.2 Index]