Learn R Programming

cSFM (version 1.1)

cSFM object: Generic Method for 'cSFM' Objects

Description

Print, extract fitted values and predict for cSFM object.

Methods of the generic function print, fitted and predict for objects inheriting from class cSFM.

Usage

"print"(x, ...) "fitted"(object, quantile = TRUE, quantile.level = c(0.5, 0.8, 0.9, 0.95, 0.99), ...) "predict"(object, newdata, cp.valid, tp.valid = NULL, ...)

Arguments

x
A cSFM object; returned by the function cSFM.est
object
A cSFM object; returned by the function cSFM.est
quantile
logical; if TRUE(default), estimates of quantiles are returned
quantile.level
quantile vector; quantile levels to be estimated when quantile = TRUE
newdata
the partically observed new data set (missing data allowed) to be predicated
cp.valid
observed covariate vector for newdata with length nrow{newdata}
tp.valid
observed timepoint vector for newdata with length ncol{newdata}; See "Details".
...
other arguments passed to the generic functions

Details

When use the function predict, each row of newdata corresponds to covariate information cp.valid, while the column is for the time points tp.valid. When tp.valid is null, then we assume the validation data set has the same time points as the training data set, which is used to obtain object.

See Also

cSFM.est, print, fitted, predict