findroot: bisection method for finding ustar

Description Usage Arguments Details Value Author(s)

View source: R/powerandsamplesize.R

Description

bisection method for finding ustar

Usage

1
findroot(g, h, umax, verbose = FALSE, plot = FALSE)

Arguments

g

left-hand-side

h

right-hand side

umax

between [0, 1] usually alpha.

verbose

TRUE/FALSE

plot

TRUE/FALSE

Details

solve G(u) = u pi0 (1-alpha)/(aplha(1-pi0)), more details follow.

Value

ustar

Author(s)

Maarten van Iterson


Rommelio-coli/SSPA documentation built on Dec. 18, 2021, 11 a.m.