IP <-read.csv(paste0("https://fred.stlouisfed.org/graph/fredgraph.csv","?id=IPB50001SQ"))IP <- xts::xts(IP["IPB50001SQ"],as.Date(IP$observation_date))head(IP, 3)
Create an account on GitHub and register for a student/educator discount.
Go-to place for installation guidance and troubleshooting is Jenny Bryan’s http://happygitwithr.com.
Some OS-specific extras
I’ll detail further software requirements as and when the need arises. However, to help smooth some software installation issues further down the road, please also do the following (depending on your OS):
Windows: Install Rtools. I also recommend that you install Chocolately.
Mac: Install Homebrew. I also recommend that you configure/open your C++ toolchain (see here.)
Linux: None (you should be good to go).
Checklist
☑ Do you have the most recent version of R?
version$version.string
## [1] "R version 4.5.3 (2026-03-11)"
☑ Do you have the most recent version of RStudio? (The preview version is fine.)
RStudio.Version()$version## Requires an interactive session but should return something like "[1] '1.4.1100'"
R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS.
What does that mean?
R was created for the statistical and graphical work required by econometrics.
R has a vibrant, thriving online community. (stack overflow)
Plus it’s free and open source.
Why R?
Many alternatives:
STATA v.s. R v.s. Python v.s MATLAB v.s. Julia v.s. C/C++
No clear answer…
Advantages of R
R is free and open source (v.s. STATA and MATLAB)
Designed for data work. Favored by the academia, particular the statistics and econometrics community, which means most of the times you can apply most up-to-date methods with packages developed by the authors. (v.s. all others)
R is very flexible and powerful — adaptable to nearly any task, e.g., ’metrics, spatial data analysis, machine learning, web scraping, data cleaning, website building, teaching.
Well-developed environment. Rich sources of packages. (v.s. Julia.)
R imposes no limitations on your amount of observations, variables, memory, or processing power. (v.s. Stata)
If you put in the work, you will come away with a valuable and marketable tool.
Python?
Yes!
… but … path dependencies of econoemtricians and statisticians
You got to master one of them first … and you will be using both of them in the real world