In this run-time test, I compare three R packages for loading Stata datasets which are foreign, haven, and readstata13. For the test, I used a Stata dataset which has 3,300,000 observations, about 200 MB.
These are a few sample datasets to work with in R
Read these data sets in R. You may first try to open them to understand how the data are stored in the data sets
It is becoming a tradition for me to teach statistics courses using reproducible research tools and asking students to do their assignments and course projects within Rmarkdown. I believe practicing reproducible research in classroom can have a positive learning effect and also makes students to pay more attention to reproducibility and transparency of their analysis. However, some newbies often struggle with installing the packages, particularly for exporting PDF from RStudio. Nevertheless, exporting HTML is much easier and does not require LaTeX.
In this post, I publish a number of Youtube videos about using Rmarkdown and Rstudio. This would be a reference for my future students to stop by this post and watch the videos in one place. I will update the list of materials as I come across more interesting or updated videos or slides.