-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include MAD_SD of random parameters in mod$ses
?
#633
Comments
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 |
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. |
OK. While I'm at it, I was hoping to clarify something--AFAICT, why is it that the Even within the Also there may or may not be a dangling Edit: apply(as.matrix(fit), 2, mad) Will work because now that I'm comparing the estimates, this doesn't seem like the way to get the standard-deviation/MAD of the random effects? Regardless of whether you do apply(as.matrix(fit), 2, mad)
apply(as.matrix(fit), 2, mean)
apply(as.matrix(fit), 2, median)
apply(as.matrix(fit), 2, sd) None of these seem to reproduce the I'm going to guess that the reason why the standard error/MAD_SD was missing from the random parameters is because the parameterization of the random parameters in rstanarm doesn't make it easy to get the |
As mentioned in the other thread, perhaps we could also have an argument in summary or print to facilitate having entirely robust and non-robust outputs? |
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 bbolker/broom.mixed#156 (comment)Reproducible 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
The text was updated successfully, but these errors were encountered: