library(mgcv)
ggplot(mtcars) +
aes(x = hp, y = disp) +
geom_point() +
stat_smooth(
aes(color = "vanilla gam"),
method = "gam"
) +
stat_smooth(
aes(color = "monotonic constraint"),
method = mgcv::scasm,
formula = y ~ s(x, bs = "sc", xt = c("m+"))
)
library(mgcv)
ggplot(mtcars) +
aes(x = hp, y = disp) +
geom_point() +
stat_smooth(
aes(color = "vanilla gam"),
method = "gam"
) +
stat_smooth(
aes(color = "monotonic constraint"),
method = mgcv::scasm,
formula = y ~ s(x, bs = "sc", xt = c("m+"))
)
🌟 scasm() for estimating GAMs with shape constrained smooths. Can be used with any family & smoothness selection is via the EFS method
🌟 scasm() for estimating GAMs with shape constrained smooths. Can be used with any family & smoothness selection is via the EFS method
I created this talk for frustrated {renv} users 🫠 and potential {renv} users🤩
youtu.be/l01u7Ue9pIQ?...
Even if {renv} isn't on your radar, you may still find this talk interesting if you are curious about🤔...
tidyverse.org/blog/2025/11...
#numpy #scipy #scikitlearn
tidyverse.org/blog/2025/11...
#numpy #scipy #scikitlearn
Virginians, make your voices heard tonight!
AND I called Warner back and leave a message begging him to pass on our thoughts to Senator Kaine, since he seems to not wish to hear from the people he represents.
Virginians, make your voices heard tonight!
AND I called Warner back and leave a message begging him to pass on our thoughts to Senator Kaine, since he seems to not wish to hear from the people he represents.
- Ten years ago, I attempted to learn Python and it went EXTRMELY badly 😩
- I am really happy that so much tooling in this area has improved SO much since then 😌
youtu.be/pMVYl9fx1EE
- Ten years ago, I attempted to learn Python and it went EXTRMELY badly 😩
- I am really happy that so much tooling in this area has improved SO much since then 😌
youtu.be/pMVYl9fx1EE
www.youtube.com/watch?v=B-bM...
www.youtube.com/watch?v=B-bM...
Others, please share
Apply through the ELLIS PhD program (dl October 31) ellis.eu/news/ellis-p...
We like to explain it with capybaras and bicycles.
We like to explain it with capybaras and bicycles.
Pictured: a collider bias diagram, inspired by a blocked pipe situation I experienced (which I credit with giving me the intuition though it also ruined my belongings in the flooded cellar).
Pictured: a collider bias diagram, inspired by a blocked pipe situation I experienced (which I credit with giving me the intuition though it also ruined my belongings in the flooded cellar).
Others, please share
Apply through the ELLIS PhD program (dl October 31) ellis.eu/news/ellis-p...
Others, please share
🧵
🧵