rpredEG: The Exponential-Gamma Predictive Distribution

View source: R/rpredEG.R

rpredEGR Documentation

The Exponential-Gamma Predictive Distribution

Description

The Exponential-Gamma Predictive Distribution

Usage

rpredEG(S, y, c, dt, gm)

Arguments

S

desired random sample size

y

list of observed and censored survival times (y1,...,yN), yi ~ Exp(theta), theta ~ Gamma(dt, gm)

c

censoring indicator (vector of 0s and 1s for censored and fully observed, respectively)

dt

Gamma shape parameter for distribution of theta

gm

Gamma rate parameter for distribution of theta

Value

random sample of size S from the Exponential-Gamma predictive probability distribution

Examples

1

vgharris3/predictiveInference documentation built on April 23, 2022, 3:11 p.m.