retrodesign.listR Documentation

List retrodesign

Description

retrodesign.list is the S3 method of the generic retrodesign() function, used when a list is passed for A.

Usage

## S3 method for class 'list'
retrodesign(A, s, alpha = 0.05, df = Inf, n.sims = 10000)

Arguments

A

a list, estimates 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

Value

A df that is 4 by length(A), with an effect size and it's corresponding power, type s, and type m errors in each row.

Examples

retrodesign(list(.2,2,20), 8.1)
retrodesign(list(.2,2,20), 8.1,df = 10)