Data Science, Machine Learning, Tech, Artificial Intelligence, Economics.
In R: firststage <- paste(“X ~ “, paste(Z, collapse = “ + “)) fit.firststage <- lm(firststage, data = df.excl) summary(fit.firststage) Scrolling through the results on our simulated data, we see an F-statistic of over 150— certainly well above our 11 rule-of-thumb — and reject that our LASSO