**What is R?**

To quote the R project website:

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 are we using 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)
- Example: C-Lasso, Bubble test

- 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.

- R is