partial_plot | R Documentation |
Make a partial plot of a variable in a model This function takes a quadVAR model as input, and returns a plot of the partial effect of a variable on the dependent variable (controlling all other variables and the intercept), for higher and lower levels of the moderator variable split by the median.
partial_plot(model, y, x, moderator)
model |
A quadVAR model |
y |
The dependent variable |
x |
The variable for which the partial effect is plotted |
moderator |
The moderator variable |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.