Displaying 1 result from an estimated 1 matches for "hyperactief".
2012 Nov 08
1
Package "glmulti": Include a variable in ALL models
...r.org/packages/cran/glmulti/docs/glmulti).
To include the variable "Geslacht" in all models:
> glm.redefined = function(formula, data, always="", ...) {glm(as.formula(paste(deparse(formula), always)), data=data, ...)}
> output<-glmulti(ZBK3~ Onafhankelijk*Zelfconcept*Hyperactief*Populariteit, data=IME, fitfunc=glm.redefined, level=2, crit=aic, method="g", always= "+Geslacht")
However, in the output, the variable "Geslacht" is not included... :
> print(output)
glmulti.analysis
Method: g / Fitting: glm.redefined / IC used: aic
Level: 2 / Mar...