outcome_surv_exponential {psborrow2}R Documentation

Exponential survival distribution

Description

Exponential survival distribution

Usage

outcome_surv_exponential(time_var, cens_var, baseline_prior, weight_var = "")

Arguments

time_var

character. Name of time variable column in model matrix

cens_var

character. Name of the censorship variable flag in model matrix

baseline_prior

Prior. Object of class Prior specifying prior distribution for the baseline outcome. See Details for more information.

weight_var

character. Optional name of variable in model matrix for weighting the log likelihood.

Details

Baseline Prior

The baseline_prior argument specifies the prior distribution for the baseline log hazard rate. The interpretation of the baseline_prior differs slightly between borrowing methods selected.

Value

Object of class OutcomeSurvExponential.

See Also

Other outcome models: outcome_bin_logistic(), outcome_cont_normal(), outcome_surv_weibull_ph()

Examples

es <- outcome_surv_exponential(
  time_var = "time",
  cens_var = "cens",
  baseline_prior = prior_normal(0, 1000)
)

[Package psborrow2 version 0.0.3.4 Index]