plot.clogitboost {clogitboost}R Documentation

Plotting after fitting a boosting conditional logit model

Description

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

Usage

## S3 method for class 'clogitboost'
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.

Author(s)

Haolun Shi shl2003@connect.hku.hk

Guosheng Yin gyin@hku.hk

See Also

clogitboost

Examples

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")


[Package clogitboost version 1.1 Index]