Skip to contents

Normal Outcome Distribution

Usage

outcome_cont_normal(
  continuous_var,
  baseline_prior,
  std_dev_prior,
  weight_var = ""
)

Arguments

continuous_var

character. Name of continuous outcome variable in the model matrix

baseline_prior

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

std_dev_prior

Prior. Object of class Prior specifying prior distribution for the standard deviation of the outcome distribution (i.e. "sigma").

weight_var

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

Value

Object of class OutcomeContinuousNormal.

Details

Baseline Prior

The baseline_prior argument specifies the prior distribution for the intercept of the linear model. The interpretation of the baseline_prior differs slightly between borrowing methods selected.

Examples

norm <- outcome_cont_normal(
  continuous_var = "tumor_size",
  baseline_prior = prior_normal(0, 100),
  std_dev_prior = prior_half_cauchy(1, 5)
)