pow_cs: calculate power several times

View source: R/pow_cs.R

pow_csR Documentation

calculate power several times

Description

calculate power several times

Usage

pow_cs(ns, p1, p2, shift, sel, CI, alpha = 0.05, nsim = 20)

Arguments

ns

numbers of somethings

p1

pr(event) in subgroup 1

p2

pr(event) in subgroup 2

shift

scaled distance between means

sel

column to select

CI

generate a CI (?)

alpha

default significance level (0.05)

nsim

number of simulations (20)

Value

   a data.frame 

Examples

pow_cs(ns=c(40,50), p1=.25, p2=.5, shift=15, sel='Bodyweight', CI=0)


VanAndelInstitute/bifurcatoR documentation built on Oct. 13, 2024, 6:29 p.m.