Select and list the same parameter from multiple models #927
Replies: 4 comments 2 replies
-
The example looks strange, I wonder where the coefficients like |
Beta Was this translation helpful? Give feedback.
-
m001 <- lm(mpg ~ ., data = mtcars)
m002 <- lm(hp ~ ., data = mtcars)
mod_names <- ls() |> Filter(f = \(x) startsWith(x, "m00"))
mod_list <- lapply(setNames(nm = mod_names), get)
parameters::compare_parameters(mod_list,
keep = "am",
standardize = "refit")
#> Parameter | m001 | m002
#> ------------------------------------------------------
#> am | 0.21 (-0.15, 0.56) | 0.07 (-0.25, 0.38)
#> ------------------------------------------------------
#> Observations | 32 | 32 Created on 2023-12-07 with reprex v2.0.2 |
Beta Was this translation helpful? Give feedback.
-
Your option did not work:
Following objects are not supported: sm001, sm002, sm003, sm004, sm005, sm006, sm007, sm008, |
Beta Was this translation helpful? Give feedback.
-
standardized_pars.xlsx |
Beta Was this translation helpful? Give feedback.
-
I have multiple (>300) models like:
How can I select and list the same parameter (i.e, "Grouppre") from each "sm" object in the environment?
I unsucceed with the following loop:
Beta Was this translation helpful? Give feedback.
All reactions