generate predictions for dependent Dirichlet process Weibull model data without competing risks.
# S3 method for ddp
predict(object,newdata,alpha=0.05,tpred=NULL,...)Output from dpweib, must be ddpcomp class
The new dataset for predictions
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.
\(1-\alpha\) is the probability for constructing credible intervals. The default \(\alpha\) is 0.05.
Arguments to be passed to method
The time points where the predictions are made.
\(1-\alpha\) is the probability for constructing credible intervals.
A matrix, the estimated survival for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.
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.
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.
A matrix, the estimated density for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.
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.
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.
A matrix, the estimated hazard for new covariates. Each row corresponds to a covariate configuration. Each column corresponds to a time point.
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.
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.