R/hct_empirical.R

hct_empirical <-
function(pvalue, p, n)
{
	
	j=1:length(pvalue)
	jp=j/p
	k=which.max((jp-pvalue)/sqrt(jp*(1-jp)))
	pvalue[k]
}

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.