Open emstruong opened 8 hours ago
Thanks for pointing that out. I think for now the easiest way to get the MAD for all parameters is just by computing it from the posterior draws. You could do:
apply(as.matrix(fit), 2, mad)
Does that work for you?
So that definitely works for my current purposes--though a fix would still be nice for broom.mixed
functionality. Was there any particular technical reason why the MAD for the random parameters was omitted or was it just a lapse?
Good question, I'm not sure, it's been so long! I'll have to take a look at the source code and refresh my memory when I have a chance. I don't have time at the moment, so I'll leave this open for now until I can get to it.
Summary:
I'm trying to easily get the
MAD_SD
for the random parameters of my model, but they seem to be missing from theses
list of the model for at leaststan_glmer
. Could they be added? It seems like the fixed effects and random values are included... This is related to https://github.com/bbolker/broom.mixed/issues/156#issue-2662483581Reproducible Steps:
Created on 2024-11-15 with reprex v2.1.1
RStanARM Version:
The version of the rstanarm package you are running (e.g., from
packageVersion("rstanarm")
): ‘2.32.1’R Version:
The version of R you are running (e.g., from
getRversion()
): ‘4.4.1’Operating System:
Your operating system (e.g., OS X 10.11.3):
Ubuntu 22.04