Principles of Econometrics with R