R/glrtReg.R

Defines functions glrtReg

Documented in glrtReg

glrtReg <-
function(data, type, groups){
	regCoeffHA <- glmReg(data, type, groups)
	regCoeffH0 <- glmReg(data, type, 0)
	
	glrt <- 2 * (regCoeffHA$loglik - regCoeffH0$loglik)
	return(glrt)
}

Try the bingat package in your browser

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

bingat documentation built on May 1, 2019, 9:11 p.m.