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 Sept. 21, 2026, 9:07 a.m.