R/ZT.statistics.Hnull.Ha.R

Defines functions ZT.statistics.Hnull.Ha

Documented in ZT.statistics.Hnull.Ha

ZT.statistics.Hnull.Ha <-
function(Nrs, fit, type){
	if(tolower(type) == "hnull"){
		genData <- Multinomial(Nrs, fit$pi)
	}else{
		genData <- Dirichlet.multinomial(Nrs, fit$gamma)
	}
	
	ZT <- c(Z.statistics(genData), T.statistics(genData))
	
	return(ZT)
}

Try the HMP package in your browser

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

HMP documentation built on Aug. 31, 2019, 5:05 p.m.