Question: model_parameters() for stanreg (from rstanarm::stan_lmer) and brmsfit (brms::brm) not complete?
Los mantenedores suelen responder en 1 día
@jmgirard ya está trabajando en esto.
Desde el 29/11/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
The report compares model_parameters() output for lmer, stan_lmer, and brm fits, including calls with effects = "random_variance"; start by tracing how those model classes and effects are handled. Check the existing model_parameters.brmsfit support and relevant tests, then reproduce the reported missing group and residual standard deviations and footer labels. Done means the output handles the reported models and includes the expected estimates and labels.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello, I am not quite sure if I am missing something, or if the output I'm looking for is itself missing. It looks like model_parameters is not set up to specifically handle stanreg objects, though it is set up to handle brmsfit objects. My layman's way of seeing this is to type > ?model_parameters and scroll through the list to see model_parameters.brmsfit but no model_parameters.stanreg. I assume that's sufficient, but no doubt there's better ways. I included a model fit with lmer for comparison.
When running the code below, model_parameters is able to extract:
lmer: gives the SD_groups (35.75) and SD_residual (44.26) estimates, the footer also has SD_residual (Sigma) and RMSE
brm: gives the SD_residual ("sigma" 44.42) but no SD_groups. Also what is R2 and Marginal-R2 are missing labels in the footer.
stan_lmer: does not give either SD_groups or SD_residual. Same footer missing labels issue as brm.
Please let me know if I am doing something incorrectly, or if what I think should be there really is missing. Thanks.
library(lme4)
library(rstanarm)
library(brms)
library(easystats)
head(sleepstudy)
fit_lmer1 <- lmer(Reaction ~ 1 + (1|Subject), data = sleepstudy)
fit_stan_lmer1 <- stan_lmer(Reaction ~ 1 + (1|Subject), data = sleepstudy)
fit_brm1 <- brm(Reaction ~ 1 + (1|Subject), data = sleepstudy, backend = "cmdstanr")
model_parameters(fit_lmer1, include_info = TRUE)
model_parameters(fit_stan_lmer1, include_info = TRUE)
model_parameters(fit_brm1, include_info = TRUE)
model_parameters(fit_stan_lmer1, include_info = TRUE, effects = "random_variance")
model_parameters(fit_brm1, include_info = TRUE, effects = "random_variance")
- Lenguaje dominante
- R
- Estrellas
- 502
- Forks
- 47
- Merge medio
- 17 h 59 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de easystats/parameters
-
Bug :bug: Consistency :green_apple: :apple:
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
easystats/parameters#1277 ·
Los mantenedores suelen responder en 1 día
-
Enhancement :boom:
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
easystats/parameters#1259 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Breaking 🏴☠️ Bug :bug:
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
easystats/parameters#1254 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
`modelsummary`'s `coef_rename` doesn't work with `avg_comparisons`Posiblemente ocupada @strengejacke la tomó hace 151 días. Abierto3 investigators :grey_question::question: Enhancement :boom:
easystats/parameters#1238 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Enhancement :boom:
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
easystats/parameters#1138 ·
Los mantenedores suelen responder en 1 día
Todos los issues de easystats/parameters
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bcgov/aqwarnings_shiny#128 ·
-
bug upkeep
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
phoible.feature() failsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
ropensci/lingtypology#94 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
datacarpentry/semester-biology#1316 ·