Skip to content

Instantly share code, notes, and snippets.

View mweylandt's full-sized avatar
😊

mweylandt

😊
View GitHub Profile
@mweylandt
mweylandt / modelsummary_interactions.R
Created January 16, 2024 15:34
Omit interactions from modelsummary tables
co <- ":" # omit all interactions
co3 <- ":.*:" # omit three way interactions and higher
co4 <- ":.*:.*:.*" #omit four-way interactions
mod <- lm(mpg ~ hp*am*wt*cyl,data = mtcars)
modelsummary(mod, coef_omit = co )
modelsummary(mod, coef_omit = co3 )
modelsummary(mod, coef_omit = co4 )
@mweylandt
mweylandt / bookmarklet
Last active November 18, 2023 11:25
Increase the html view box in qualtrics because it's annoyingly tiny
javascript:(function(){var elem = document.querySelector('.inlineEditor.html-editor'); elem.style.height = '1000px'; })();