R Statistics Scripts Repository

A recent series of posts on the analysis of survival data got me thinking (about why R is such a great stats package and…) that perhaps it would be useful to have some place for people on the forum to look up R scripts for different statistical tests, plotting, tables diagrams etc.

This doesn’t need a board, just a thread with script contributions (cut and pasted)…it could be this thread. It would save a lot of time and energy and reinventing of the wheel.

What do people think?

Steve

Great idea. I have found the following pages helpful in writing some basic R scripts:

basic bar plots: http://www.statmethods.net/graphs/bar.html
how to calculate sample size: http://www.statmethods.net/stats/power.html