plot.clogitboost {clogitboost} | R Documentation |
plot
methods for the clogitboost
objects, which produce marginal plots of the covariate effects.
## S3 method for class 'clogitboost'
plot(x, d, grid = NULL, ...)
x |
output object from the |
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. |
Haolun Shi shl2003@connect.hku.hk
Guosheng Yin gyin@hku.hk
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")