R/check.R

Defines functions `check`

`check` <-
function(obj){
     check<-TRUE
     ## check whether completely aliased only
     ## works for numeric -1 and 1 coded data only
     mm <- model.matrix(remodel(obj)$model)
     if (any(colnames(mm)=="(Intercept)")) 
             mm <- mm[,-which(colnames(mm)=="(Intercept)")]
     if (!all(round(t(mm)%*%mm, 10) %in% c(0,nrow(mm),-nrow(mm)))) check <- FALSE 
     check
   }

Try the FrF2 package in your browser

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

FrF2 documentation built on Sept. 20, 2023, 9:08 a.m.