Skip to contents

Simplex brms-implementation in median parametrization.

Usage

simplex(link = "logit", link_sigma = "identity")

Arguments

Link function for function

Link function for sigma argument

Value

brms Beta-Custom distribution family

Examples

a <- rnorm(1000)
data <- list(a = a, y = rsimplex(1000, brms::inv_logit_scaled(0.5 * a + 1), 2))
fit <- brms::brm(
  formula = y ~ 1 + a, data = data,
  family = simplex(), stanvars = simplex()$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