Posteriors for random intercepts #182
Answered
by
jobrachem
stefgehrig
asked this question in
Q&A
-
Is there a simple and efficient way to generate draws for the random intercepts for all units in the scale and location parameter models in a model like this?
model <- liesel(
response = df$y,
distribution = "LogNormal",
predictors = list(
loc = predictor( ~ s(bmi, bs = "ps", k = 15) + s(center, bs = "re"), inverse_link = "Identity"),
scale = predictor( ~ s(center, bs = "re"), inverse_link = "Exp")
),
data = df
) |
Beta Was this translation helpful? Give feedback.
Answered by
jobrachem
Feb 5, 2024
Replies: 1 comment 1 reply
-
I would expect the samples to be available directly. Can you show me the output of the following code? samples = results.get_posterior_samples()
list(samples) Here, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jobrachem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would expect the samples to be available directly. Can you show me the output of the following code?
Here,
results
is the object returned byEngine.get_results()
. The snippet above will output a list of the names of parameters for which we have drawn posterior samples.