# Lesson 12 · Advanced statistics

**What you will learn in this lesson**

- How to run a linear regression

- How R outputs statistical significance thresholds

- Why splitting your code into different files is useful

As a data-oriented programming language, R has built-in advanced statistical capabilities. Even more statistical capabilities are accessible with packages. Let’s go back to our `stats.R`

file and let’s do some advanced statistics.

If you do not need advanced statistics, you can jump to the next lesson: lesson 13