View source: R/removeAllMissingCatVar.R
removeAllMissingCatVar | R Documentation |
This function removes categorical variables from mixture models. This is needed when metabolite values are entirely missing or only present for one level of the categorical variable, making it impossible to estimate effects for the categorical variable.
removeAllMissingCatVar(cat.varname, mxtrModel)
cat.varname |
A character string indicating a categorical predictor variable in the mixture model. |
mxtrModel |
A mixture model formula of class formula. |
Returns a mixture model formula of class formula with the variable indicated in cat.varname omitted.
Michael Nodzenski
#specifiy mixture model mix.model<- ~ var1 + var2 | var1 + var2 #remove var1 removeAllMissingCatVar("var1", mix.model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.