R/sequant.R

"sequant" <-
function(p, sig2, n)
{
#
#  compute se for pth quantile
#
#  sig2 is distribution variance estimate
#  (preferably by .75*IQR)
#
#  n number in sample
#
	pq <- p * (1 - p)
	phip <- (qnorm(p))^2
	seqret <- sig2 * pq * 2 * pi * exp(phip)
	seqret <- sqrt(seqret/n)
	return(seqret)
}

Try the clinDR package in your browser

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

clinDR documentation built on Aug. 9, 2023, 9:08 a.m.