Learn R Programming

spBayesSurv (version 1.1.1)

GetCurves: Density, Survival, and Hazard Estimates

Description

This function estimates density, survival, and hazard functions given covariates.

Usage

GetCurves(x, xpred=NULL, tgrid=NULL, CI=0.95, PLOT=FALSE, ...)
## An alternative useage is 
## plot(x, xpred=NULL, tgrid=NULL, CI=0.95, PLOT=FALSE, ...)

Arguments

x

an object obtained from the functions anovaDDP, spCopulaDDP, indeptCoxph and spCopulaCoxph.

xpred

an npred by p vector of covariates matrix used for curve estimates.

tgrid

a vector of grid points indicating where the curves will be estimated.

CI

a numeric value indicating the level of credible interval.

PLOT

a logical value indicating whether the estimated survival curves will be plotted.

...

further arguments to be passed to or from other methods.

Value

Use names to find out what they are, where fhat represents density, Shat represents survival, hhat represents hazard. The credible bands are also provided, e.g., Shatlow represents the lower band and Shatup represents the upper band.

Details

This function estimates density, survival, and hazard functions given covariates.

References

Zhou, H., Hanson, T., and Knapp, R. (2015). Marginal Bayesian nonparametric model for time to disease arrival of threatened amphibian populations. Biometrics, 71(4): 1101-1110.

De Iorio, M., Johnson, W. O., Mueller, P., and Rosner, G. L. (2009). Bayesian nonparametric nonproportional hazards survival modeling. Biometrics, 65(3): 762-771.

See Also

anovaDDP, spCopulaDDP, indeptCoxph, spCopulaCoxph