R/cv_method.R

cv_method <-
function(mu0, p, m, n, alpha_list, nrep, p1=0.5, ss=F, sampling.p=0.5)
{
	temp=sapply(rep(mu0, nrep), cv_method_single, p, m, n, alpha_list, p1, ss, sampling.p)

	if (ss==F)
		mean(temp)
	else
		apply(temp, 1, mean)

}

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.