This series of videos will serve as an introduction to the R statistics language, targeted at economists.
In this video we cover what to do once you've already run your regression! We pull out the predicted values and residuals with predict() and residuals(), we use Breusch-Pagan (bptest()) to check for heteroskedasticity, we calculate heteroskedasticity- or cluster-robust standard errors with coeftest() in the sandwich package, and we perform F-tests of regression coefficients with linearHypothesis() in the AER package. These commands and tests work with all kinds of regression commands, not just OLS (lm()).
Download the code from all my R videos at once at https://nickchk.com/R%20for%20Economi...
You can find links to every video in the series here: http://nickchk.com/videos.html#rstats
There are videos on: [BASIC] Getting Started, Getting Help, Objectives and Variables, Vectors and Matrices, Data Frames, Packages, Summary Statistics (of One and Two Variables), Plots and Graphs, and Linear Regression (OLS), [MODERATE] Regression Formulas, Robust or Clustered Standard Errors and Post-Regression Stats, Regression Plots, Instrumental Variables (IV Regression), Time Series, ARIMA and ARMA, Probit and Logit, Tobit and Heckman, Panel Data, and Missing Data, and [ADVANCED] Simulations, The Tidyverse, Reshape and Join/Merge, dplyr (Introduction, Piping, and Grouping), ggplot (Introduction, Geometries, Overlaid and Grouped Plots, and Titles and Labels), and vtable
Информация по комментариям в разработке