Learn R Programming

clogitboost (version 1.1)

plot.clogitboost: Plotting after fitting a boosting conditional logit model

Description

plot methods for the clogitboost objects, which produce marginal plots of the covariate effects.

Usage

"plot"(x, d, grid = NULL, ...)

Arguments

x
output object from the clogitboost function.
d
integer indicating which covariate is used.
grid
grid of values for plotting. If it is not specified, the minimal and maximal elements of the covariate are used as the two endpoints of the grid.
...
other options for plotting.

See Also

clogitboost

Examples

Run this code
data(travel)
train <- 1:504
y <- travel$MODE[train]
x <- travel[train, 3:6]
strata <- travel$Group[train]
fit <- clogitboost(y = y, x = x, strata = strata, iter = 10, rho = 0.05)
plot(fit, d = 1, xlab = "x", ylab = "f(x)", main = "TTIME", type = "l")

Run the code above in your browser using DataLab