plot.apes: Generic plotting function for class 'apes'

View source: R/plot.apes.R

plot.apesR Documentation

Generic plotting function for class apes

Description

Generic plotting function for class apes

Usage

## S3 method for class 'apes'
plot(x, type = "path", ...)

Arguments

x

An object of class apes

type

Type of plot: (only supporting "path" at the moment)

  • "path": Information criterion vs model size. Either "AIC" or "BIC" can be shown using the order argument.

...

additional parameters (not currently used)

Value

A ggplot output corresponding to the select plotting type.

Examples

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)

kevinwang09/APES documentation built on Nov. 10, 2023, 12:09 p.m.