I am going to teach undergraduate laboratory exercises for linear regression models in either Matlab or R.

Is there any book that is not emphasizing a lot in theory but focuses mostly in applications and in examples with any of the above languages?

I want to thank you all for your insights and for time replying to me. I cannot accept an answer, this wouldn't be fair for the others since everyone contributed.

  • 3
    $\begingroup$ It depends on the prerequisites for the class. I like the book Linear Models with R by Julian Faraway. This book is very applied and is self-contained and was my - and several of my peers' - introduction to linear models but it may a little tough for undergraduates with little background and comfort with probability/statistics. $\endgroup$
    – Macro
    Commented Sep 18, 2013 at 15:23
  • 2
    $\begingroup$ I would suggest looking at this post which seems to have gotten quite a bit of attention: stats.stackexchange.com/questions/138/resources-for-learning-r $\endgroup$
    – user25658
    Commented Sep 18, 2013 at 18:05
  • $\begingroup$ Probably I am quite late to ask this but what kind of mathematical expertise are you expecting your undergrads to have? Do your students have prior exposure to Calculus? Probability? Economics? Will this be toward the end of their studies? If you expect to have a lot of Lin. Algebra, Matlab (or Octave) might be more helpful due to cleaner syntax. (Generally speaking, I upvoted Macro's suggestion on J.Faraway's book but it is a bit of a "shotgun answer".) $\endgroup$
    – usεr11852
    Commented Oct 8, 2013 at 3:32

3 Answers 3


Peter Dalgaard, one of the R core contributors, has written Introductory Statistics with R. I don't know what your class is and what backgrounds your students will have, but you may want to glance a (brief) table of contents on the book's Web site. There are several chapters on linear regression.


Please take a look at Applied Predictive Modeling Kuhn and Johnson http://www.amazon.com/Applied-Predictive-Modeling-Max-Kuhn/dp/1461468485

They have an R Package with all the data and nicely available,actual code. There are at least two case studies in the book involving simple least squares with plots and analysis. There are exercises in the computing sections and the end of each chapter and real world data. They also have a blog and website for technical support (says to contact them if you want to use their book for class.) Probably could strike a deal as the book isn't cheap. But it is really good. These guys are the authors of the caret package, in R.


I think the book is outstanding--emphasis is on applied if you read the Amazon reviews and I can vouch for that!


You may also want to look at The R Book by Crawley (http://www.amazon.com/The-Book-Michael-J-Crawley/dp/0470973927), which I find to be a great toolbox-type resource for R modeling. It runs through high-level implementations of many common modeling techniques using simple datasets, and will frequently reuse the same datasets to show how different models compare.

It is not completely theory-free and probably a little long if your topic is just one part of a larger class, but the points at which he applies theory are usually used to show how to derive the answer in R outside of the modeling functions, which I found useful.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.