R/assocCNV.i.R

assocCNV.i<-function(x, formula, family=binomial, ...)
 {
   assign("x", x, envir = .GlobalEnv)
   mod0<-glm(formula, family=family, ...)
   mod1<-update(mod0, . ~ . + x)
   res<-anova(mod0, mod1, test="Chi")$P[2]
   res
 } 

Try the gada package in your browser

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

gada documentation built on May 2, 2019, 6:10 p.m.