R/Q_func.R

Q_func <-
function(tt, p1)
{
	k=1/2*log((1-p1)/p1)/tt
	c(pnorm(tt-k),  pnorm(tt+k))
}



Q_func2 <-
function(num,denom, p1)
{
	k=1/2*log((1-p1)/p1)

	c(pnorm((num-k)/denom),  pnorm((num+k)/denom))
}

Try the HDDesign package in your browser

Any scripts or data that you put into this service are public.

HDDesign documentation built on May 2, 2019, 6:41 a.m.