Description Usage Arguments Details Value Examples
An intuitive way of interpreting coefficients in a model: take a typical case or sample, vary the variable of interest, and see how that changes the prediction. Works for categorical and continuous predictors.
1 2 |
model |
a model object with a data slot and a predict() method |
variable |
a character of the variable of interest |
ci |
confidence interval range (default 95%) |
plt_range |
optional vector of length 2 indicating the range to plot over for the x-axis. Defaults to the range of the variable in the data. |
collector |
"typical" or "average" or an abbreviation thereof. See details. |
The 'typical' collector calculates the median values for numeric, and the most common class for categorical predictors. The 'average' collector returns the mean for numeric variables and the reference category for categorical variables.
'ggplot' object with the MEM plot
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.