outcome_bin_logistic {psborrow2}R Documentation

Bernoulli distribution with logit parametrization

Description

Bernoulli distribution with logit parametrization

Usage

outcome_bin_logistic(binary_var, baseline_prior, weight_var = "")

Arguments

binary_var

character. Name of binary (1/0 or TRUE/FALSE) 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.

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 odds. The interpretation of the baseline_prior differs slightly between borrowing methods selected.

Value

Object of class OutcomeBinaryLogistic.

See Also

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

Examples

lg <- outcome_bin_logistic(
  binary_var = "response",
  baseline_prior = prior_normal(0, 1000)
)

[Package psborrow2 version 0.0.3.4 Index]