22

I am interested in examples of sources (R code, R packages, books, book chapters, articles, links etc) for learning statistical and mathematical concepts through R (it could also be through other languages, but R is my favorite flavor).

The challenge is that the learning of the material relies on the programming, not just on how to run a code that performs the algorithm.

So (for example) a book like Linear models with R (which is a great book) is not what I am looking for. This is since this books mainly shows how to implement linear models in R, but it does not revolve around teaching linear models by using R.

The help files for the (wonderful) TeachingDemos package is a good example of what I am looking for. It is an R package which includes functions for learning statistical concepts through various R applets and simulations. The accompany help files are nice. Of course, neither are sufficient, and require an external text-book in order to master many of the exact details to learn them (well, the help files do).

All leads will be much appreciated.

amoeba
  • 93,463
  • 28
  • 275
  • 317
Tal Galili
  • 19,935
  • 32
  • 133
  • 195
  • This book might be relevant: https://www.amazon.com/Computation-Modelling-Insurance-International-Actuarial-ebook/dp/B00HAFNVKO/ref=sr_1_1?s=books&ie=UTF8&qid=1482688868&sr=1-1&keywords=b%C3%B8lviken – kjetil b halvorsen Dec 25 '16 at 18:06

5 Answers5

13

I think R (or perhaps a comparable programming language) can be extremely helpful in learning about statistics. Of course, this will require that students learn some programming as well, which may be a bridge too far, so depending on your audience, you may need to do all the programming yourself and just show students the simulations. An example of this can be found in my answer here, regarding teaching the idea of the sampling distribution (warning the code is ugly and comically inefficient).

On the other hand, if you want to try having your students learn some programming along the way as well, there are some introductory statistics books based to varying degrees on that model:

gung - Reinstate Monica
  • 132,789
  • 81
  • 357
  • 650
9

There is "Introduction to Probability and Statistics Using R" by G. Jay Kerns available at http://ipsur.org/ and as the R package IPSUR. From the title alone, it seems like the type of text you are looking for.

Brian Diggs
  • 1,021
  • 8
  • 17
4

I think the benchmark in the field here is "An Introduction to Statistical Learning - with applications in R" http://www-bcf.usc.edu/~gareth/ISL/

f.g.
  • 142
  • 7
1

I recommend the R package swirl, which sounds exactly like what you're looking for- learning R and statistics, not only using R, but in R itself.

gstats
  • 101
  • 3
0

I really like the book "introductory statistics with R" a very practical book. It walks you through the basic statistics and implementations in R.