predict.ddpcomp: 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 with competing risks.

Usage

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

Arguments

object

Output from dpweib, must be ddpcomp class

newdata

The new dataset for predictions

alpha

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

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.

...

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.

Fpred

A matrix, the estimated cumulative incidence functions of cause 1 for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

Fpredu

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

Fpredl

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

dpred

A matrix, the estimated subdistribution density functions 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 subdistribution 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 subdistribution density functions for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.

hpred

A matrix, the estimated subdistribution hazard functions 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 subdistribution 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 subdistribution 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.