type_m.numeric: Numeric type_m

View source: R/simple_hypothesis_tests.R

type_m.numericR 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)

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