retro_design_closed_form.numeric: Numeric retro_design_closed_form

View source: R/simple_hypothesis_tests.R

retro_design_closed_form.numericR Documentation

Numeric retro_design_closed_form

Description

retro_design_closed_form.numeric is the S3 method of the generic retro_design_closed_form() function, used when a single numeric is passed for A.

Usage

## S3 method for class 'numeric'
retro_design_closed_form(A, s, alpha = 0.05)

Arguments

A

a numeric, an estimate of the true effect size

s

a numeric, standard error of the estimate

alpha

a numeric, the statistical significance threshold

Value

A list of length 3 containing the power, type s, and type M error.

Examples

retrodesign(1,3.28)
retrodesign(2,8.1)

retrodesign documentation built on Nov. 3, 2023, 1:07 a.m.