Last active
July 22, 2025 14:54
-
-
Save strengejacke/4ccb47dab2c97d3bb48b7805122b1e88 to your computer and use it in GitHub Desktop.
`tinyplot` methods for _modelbased_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replicates plots from this vignette: | |
https://easystats.github.io/modelbased/articles/plotting.html | |
Not working | |
m <- lm(neg_c_7 ~ c12hour * barthtot * c160age, data = efc) | |
# gpplot2 version | |
estimate_means(m, c("c12hour", "barthtot", "c160age")) |> plot() | |
## FIXME not working yet | |
estimate_means(m, c("c12hour", "barthtot", "c160age")) |> plt() | |
## TODO | |
states <- as.data.frame(state.x77) | |
states$HSGrad <- states$`HS Grad` | |
m_mod <- lm(Income ~ HSGrad + Murder * Illiteracy, data = states) | |
slopes <- estimate_slopes(m_mod, "Murder", by = "Illiteracy", length = 200) | |
plt(slopes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created on 2025-07-22 with reprex v2.1.1