plot.apes | R Documentation |
apes
Generic plotting function for class apes
## S3 method for class 'apes'
plot(x, type = "path", ...)
x |
An object of class |
type |
Type of plot: (only supporting "path" at the moment)
|
... |
additional parameters (not currently used) |
A ggplot output corresponding to the select plotting type.
set.seed(10)
n = 100
p = 10
beta = c(1, -1, rep(0, p-2))
x = matrix(rnorm(n*p), ncol = p)
colnames(x) = paste0("X", 1:p)
y = rbinom(n = n, size = 1, prob = expit(x %*% beta))
data = data.frame(y, x)
model = glm(y ~ ., data = data, family = "binomial")
apes_result = apes(model = model)
plot(apes_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.