Skip to content
Prev 5499 / 398502 Next

R Documentation(s)

Kjetil Kjernsmo <kjetil.kjernsmo at astro.uio.no> writes:
Perhaps it is not exactly a "compendium" in the sense you describe but
there is an R package called Devore5 containing all the data sets
for a specific introductory statistics text, Jay Devore's "Probability
and Statistics for Engineering and the Sciences (5th ed)".  Because
there are facilities for documenting data sets in R and because you
can use
 example(topic)
to run the example section from a manual page as a script in R, I can
document all the examples in the text and show the R code that
corresponds to the example.

This approach is tied to the specific text but, for someone who has
access to that text, it provides a ready answer to questions like "How
do I do a two-sample paired t-test in R?".  They go to the appropriate
section of the text, see that Example 9.8 does such a test, and then
run
 library(Devore5)
 example(xmp09.08)
to see the commands and resulting output.

It is interesting that it is extremely difficult to package these
kinds of demonstrations for students when using a GUI-based system
like Minitab.  I had previously used Minitab in the course where I use
this text and I found that I either explained the command-line
interface or I did an in-class demonstration with the GUI or I was
spending my time describing things like "you click on the Statistics
menu and that gives you an option of Analysis of Variance (or maybe it
is called ANOVA, I can't remember) and that brings up a panel where
...".  Those kinds of explanations are very hard to follow.  

With the command line interface in R I can put up a transparency and
show the class "type this and you get that".