Skip to contents

Returns the custom_family + stanvars pair required to fit a brms model with a Shifted Loglogistic response distribution. The Stan code is loaded from inst/stan/shifted_loglogistic.stan via build_brms_custom_family; post-processing functions (log_lik, posterior_predict, posterior_epred) are wired in automatically.

Usage

brms_custom_shifted_loglogistic()

Value

A list with elements custom_family and stanvars_family ready for use with brms::brm().

Details

Three parameters:

mu

Location parameter (identity link).

sigma

Scale parameter (sigma > 0, log link).

xi

Shape parameter (identity link).

Examples

# \donttest{
library(hbsaems)
library(brms)
sll <- brms_custom_shifted_loglogistic()
# fit <- brm(y ~ x, data = d,
#            family   = sll$custom_family,
#            stanvars = sll$stanvars_family)
# }