type_m.list: List type_m

View source: R/simple_hypothesis_tests.R

type_m.listR Documentation

List type_m

Description

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

Usage

## S3 method for class 'list'
type_m(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 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

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

Examples

type_s(list(.2,2,20),8.1)

retrodesign documentation built on May 29, 2024, 4:39 a.m.