predict.lple: predict a lple object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/predict.lple.R

Description

Compute fitted values and prediction error for a model fitted by lple

Usage

1
2
3
## S3 method for class 'lple'
## S3 method for class 'lple'
predict(object, newdata, newy=NULL)

Arguments

object

the results of a lple fit.

newdata

Optional new data at which to do predictions. If absent, predictions are for the dataframe used in the original fit.

Details

predict.lple is called to predict object from the lple model lple.

The default method, predict has its own help page. Use methods("predict") to get all the methods for the predict generic.

Value

predict.lple returns a list of predicted values, prediction error and residuals.

lp

linear predictor of beta(w)*Z, where beta(w) is the fitted regression coefficient and Z is covariance matrix.

risk

risk score, exp(lp). When new y is provided, both lp and risk will be ordered by survival time of the new y.

residuals

martingale residuals of the prediction, if available.

pe.mres

prediction error based on martingale residual, if both new data and new y is provided.

cumhaz

cumulative hzard function.

time

time for cumulative hazard function. Time from new y will be used is provided

Author(s)

Bingshu E. Chen

See Also

The default method for predict predict, #survfit.lple

Examples

1
2
3
#
#  predict(fit)
#

statapps/lplb documentation built on July 10, 2021, 6:14 p.m.