prop_diff_detectable: prop_diff_detectable function

View source: R/power analysis.R

prop_diff_detectableR Documentation

prop_diff_detectable function

Description

creates a table with sample size, effect size, proportion 2 and the minimum detectable change in proportion at the given levels in order to see how the values change and to plot

Usage

prop_diff_detectable(from, to, by, sig = 0.05, pwr = 0.8, prop1)

Arguments

from

the lowest n value to check

to

the highest n value to check

by

the interval between the lowest and highest n values t check (e.g. from n=100 to n=500 by 50 will return a table with 9 rows)

sig

the significance value to be used in the power analysis. the default for this is 0.05

pwr

the expected statistical power for the power analysis. the default for this is 0.80

prop1

the stable proportion that can be estimated or expected

Examples

prop_diff_detectable_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.