Linear Regression from Scratch in R

Running a regression is a commonplace task—you can do it via a function call it any statistical programming language (even Excel!). But do you really understand what that function is doing? I always feel far more confident using functions when I understand the details of their implementation, and I love this post for diving into the internals of lm(). By the end, you could implement linear regression from scratch.


Want to receive more content like this in your inbox?