plot_effects | R Documentation |
The marginal effects of a variable is the expected effect, where expectation is meant with respect to all other variables.
plot_effects(object, alpha = c(0.1, 0.5, 0.9), vars = object$order)
object |
a |
alpha |
vector of quantile levels. |
vars |
vector of variable names. |
# simulate data
x <- matrix(rnorm(200), 100, 2)
y <- x %*% c(1, -2)
dat <- data.frame(y = y, x = x, z = as.factor(rbinom(100, 2, 0.5)))
# fit vine regression model
fit <- vinereg(y ~ ., dat)
plot_effects(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.