| parse_term | R Documentation |
Splits coefficient term names into base variable names and factor levels. For example, "sexMale" becomes variable="sex" and group="Male". Handles interaction terms and continuous variables appropriately.
parse_term(terms, xlevels = NULL, model = NULL)
terms |
Character vector of coefficient term names. |
xlevels |
Named list of factor levels from the model. |
model |
Optional model object for extracting factor info from coxme models. |
Data.table with 'variable' and 'group' columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.