Question: model_parameters() for stanreg (from rstanarm::stan_lmer) and brmsfit (brms::brm) not complete?
I maintainer di solito rispondono entro 1 giorno
@jmgirard ci sta già lavorando.
Dal 29/11/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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")
- Lingua principale
- R
- Stelle
- 502
- Fork
- 47
- Merge medio
- 17h 59m
- PR unite (30g)
- 10
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di easystats/parameters
-
Bug :bug: Consistency :green_apple: :apple:
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
easystats/parameters#1277 ·
I maintainer di solito rispondono entro 1 giorno
-
Enhancement :boom:
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
easystats/parameters#1259 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Breaking 🏴☠️ Bug :bug:
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
easystats/parameters#1254 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
`modelsummary`'s `coef_rename` doesn't work with `avg_comparisons`Forse già presa @strengejacke l’ha presa 151 giorni fa. Aperta3 investigators :grey_question::question: Enhancement :boom:
easystats/parameters#1238 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Enhancement :boom:
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
easystats/parameters#1138 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di easystats/parameters
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bcgov/aqwarnings_shiny#128 ·
-
bug upkeep
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
phoible.feature() failsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
ropensci/lingtypology#94 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
datacarpentry/semester-biology#1316 ·