Skip to contents

A class for defining a logistic regression with a binary outcome to be translated to Stan code. Objects of class LogisticBinaryOutcome should not be created directly but by the constructor logistic_bin_outcome().

Slots

function_stan_code

character. stan function code block containing text to interpolate into stan model. Empty string for LogisticBinaryOutcome.

param_stan_code

character. stan parameter code block containing text to interpolate into stan model. Empty string for LogisticBinaryOutcome.

likelihood_stan_code

character. stan model likelihood code block containing text to interpolate into stan model.

n_param

integer. Number of ancillary parameters for the model to estimate (0).

param_priors

list. Named list of prior distributions on the ancillary parameters in the model. Empty for LogisticBinaryOutcome.

binary_var

character. Variable used for outcome in LogisticBinaryOutcome objects.