Skip to content

Instantly share code, notes, and snippets.

View jgub's full-sized avatar

Joshua Gubler jgub

View GitHub Profile
@jgub
jgub / R_Startup.R
Last active October 26, 2019 03:26
A great R startup file. Useful packages, robust standard errors, 2-way and 3-way marginal effects plots, predicted values
###########################################
###First, some code to update all packages at startup:
local({r <- getOption("repos")
r["CRAN"] <- "https://cran.revolutionanalytics.com/"
options(repos=r)
})
library(utils)
options(pkgType="binary")
update.packages()