My model errors with the inverse.gaussian()
family - no matter which link
I try (does work with the same data in lme4::lmer
)…
Reprex:
library(brms)
x <- exp(rnorm(100))
d <- data.frame(x = x)
m <- brm(
x ~ 1,
data = d,
family = inverse.gaussian()
)
Error:
Compiling Stan program...
SYNTAX ERROR, MESSAGE(S) FROM PARSER:
No matches for:
inv_gaussianvector_lpdf(vector, vector, real)
Function inv_gaussianvector_lpdf not found.
error in 'model48c359b4013_ea223744ce65eb4c011f29ae75df6876' at line 76, column 52
-------------------------------------------------
74: mu[n] = inv_sqrt(mu[n]);
75: }
76: target += inv_gaussianvector_lpdf(Y | mu, shape);
^
77: }
-------------------------------------------------
Error in stanc(file = file, model_code = model_code, model_name = model_name, :
failed to parse Stan model 'ea223744ce65eb4c011f29ae75df6876' due to the above error.