| matchcovariate | R Documentation |
Matches model coefficient names (including interactions) to original covariate indices from the model call. Handles centered variables and interaction terms. Returns a numeric encoding for sorting.
matchcovariate(betanames, ucall)
betanames |
Vector of coefficient names from model |
ucall |
Vector of unique covariate names from model call |
Changes:
Feb 21, 2019: Changed from charmatch to grepl for more reliable matching
Dec 14, 2020: Added space removal to support centered variables
Numeric vector of encoded covariate indices, or -1 if matching fails
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.