partial_plot {quadVAR} | 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.
Description
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.
Usage
partial_plot(model, y, x, moderator)
Arguments
model |
A quadVAR model |
y |
The dependent variable |
x |
The variable for which the partial effect is plotted |
moderator |
The moderator variable |
Value
A ggplot object
[Package quadVAR version 0.1.2 Index]