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


SSPA documentation built on Nov. 8, 2020, 5:50 p.m.