Skip to contents

logistic brms custom family

Usage

logistic(link = "identity", link_sigma = "log")

Arguments

Link function for function

Link function for sigma argument

Value

BRMS logistic distribution family

Examples

a <- rnorm(n = 1000)
data <- list(a = a, y = rlogistic(n = 1000, mu = a + 2, sigma = 2))
fit <- brms::brm(
  formula = y ~ 1 + a, data = data,
  family = logistic(), stanvars = logistic()$stanvars,
  refresh = 0
)
#> Compiling Stan program...
#> Error in .fun(model_code = .x1): Boost not found; call install.packages('BH')
plot(fit)
#> Error: object 'fit' not found