get_terms: Extract the partial effects of non-linear model terms
Description
This function basically creates a new df from data for
each term in terms, creating a range from minimum and maximum of the
predict(fit, newdata=df, type="terms"). Terms are then
stacked to a tidy data frame.
Usage
get_terms(data, fit, terms, ...)
Value
A tibble with 5 columns.
Arguments
data
A data frame containing variables used to fit the model. Only
first row will be used.