predict.ddp: generate predictions for dependent Dirichlet process Weibull...

Description Usage Arguments Value

View source: R/pred.R

Description

generate predictions for dependent Dirichlet process Weibull model data without competing risks.

Usage

1
2
## S3 method for class 'ddp'
predict(object,newdata,alpha=0.05,tpred=NULL,...)

Arguments

object

Output from dpweib, must be ddpcomp class

newdata

The new dataset for predictions

tpred

The time points where the predictions are made. If is not given by the user, it will use the time points where the log hazard ratios are calculated in dpweib function.

alpha

1-α is the probability for constructing credible intervals. The default α is 0.05.

...

Arguments to be passed to method

Value

tpred

The time points where the predictions are made.

alpha

1-α is the probability for constructing credible intervals.

Spred

A matrix, the estimated survival for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

Spredu

A matrix, the estimated upper pointwise credible interval of the survival functions for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

Spredl

A matrix, the estimated lower pointwise credible interval of the survival functions for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

dpred

A matrix, the estimated density for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

dpredu

A matrix, the estimated upper pointwise credible interval of the density functions for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

dpredl

A matrix, the estimated lower pointwise credible interval of the density functions for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

hpred

A matrix, the estimated hazard for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

hpredu

A matrix, the estimated upper pointwise credible interval of the hazard functions for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

hpredl

A matrix, the estimated lower pointwise credible interval of the hazard functions for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.


DPWeibull documentation built on Dec. 13, 2021, 1:07 a.m.