Learn R Programming

BayesReversePLLH (version 1.5)

Fits the Bayesian Piecewise Linear Log-Hazard Model

Description

Contains posterior samplers for the Bayesian piecewise linear log-hazard and piecewise exponential hazard models, including Cox models. Posterior mean restricted survival times are also computed for non-Cox an Cox models with only treatment indicators. The ApproxMean() function can be used to estimate restricted posterior mean survival times given a vector of patient covariates in the Cox model. Functions included to return the posterior mean hazard and survival functions for the piecewise exponential and piecewise linear log-hazard models. Chapple, AG, Peak, T, Hemal, A (2020). Under Revision.

Copy Link

Version

Install

install.packages('BayesReversePLLH')

Monthly Downloads

88

Version

1.5

License

GPL-2

Maintainer

Andrew Chapple

Last Published

October 20th, 2022

Functions in BayesReversePLLH (1.5)

GetALLSurvPEH

Computes the posterior distribution of survival probabilities for a vector x for the Piecewise Exponential Hazard model (PEH)
PostMeanSurvPLLH

Computes the posterior mean survival probabilities for a vector x for the Piecewise Linear Log Hazard model (PLLH)
GetALLSurvPLLH

Computes posterior distribution of survival probabilities for a vector x for the Piecewise Linear Log Hazard model (PLLH)
PostMeanHazLogSlope

Computes the posterior mean hazard value for a vector x for the Piecewise Linear Log Hazard model (PLLH)
PostMeanHazPiece

Computes the posterior mean hazard values for a vector x for the Piecewise Exponential Hazard model (PEH)
BayesPiecewiseLinearLogHazardCOV

Samples from the PLLH Cox model with a patient covariate vector.
PostMeanSurvPEH

Computes the posterior mean survival probabilities for a vector x for the Piecewise Exponential Hazard model (PEH)
BayesPiecewiseLinearLogHazard

Samples from the PLLH model without covariates.
GetALLHazLogSlope

Computes the posterior distribution of hazard value for a vector x for the Piecewise Linear Log Hazard model (PLLH)
BayesPiecewiseHazardCOV

Samples from the PEH Cox model with a patient covariate vector.
ApproxMean

Returns the approximate restricted posterior mean survival for the PLLH model.
BayesPiecewiseLinearLogHazardTrt

Samples from the PEH Cox model with a treatment indicator.
BayesPiecewiseHazardTrt

Samples from the PEH Cox model with a patient covariate vector.
GetALLHazPiece

Computes the posterior hazard values for a vector x for the Piecewise Exponential Hazard model (PEH)
BayesPiecewiseHazard

Samples from the PEH model without covariates.