R is wonderful but sometimes getting things done is a pain. Here we collect code to make it more fun and get things done.
We have a facebook group
This site is linked to the Edinburgh Psychology Statistics Seminar Group and to the MSc Statistics Course:
Univariate Statistics and Methodology using R (P03320), as well as The Differential Group Journal Club at Edinburgh.
If you are doing SEM in R, check out OpenMx, a powerful new free SEM package built on top of R.
Contents
- Beginning R
- Data Cleaning
- Frequently Asked Questions
- General R Hints
- Model Fitting
- msc faq
- Univariate methods and statistics using R
Contribute!
If you want to help or add things, you can: just press edit. You can discuss top level planning issues here.
If you see an entry you'd like to fix then go ahead: Pages can easily be recovered if you accidentally destroy something.
Guidelines
- Just edit — if you break something then ask one of the wiki contacts for assistance.
- If you create a new page, set its parent page so it gets included in the contents (options:parent).
- Provide references
- Ensure example code is standalone.
- Use "require" to indicate what libraries are needed.
- Include an example of the output you get (this is especially important for graphs so you see what the code does).
- If you want a change that you are unable to do yourself, add a footnote reading "FIXME!", plus the problem.
Notes for the reader
All examples should be standalone, but it is assumed you have the required packages installed. If on running a require command you see an error like the following:
require(lme4)
Loading required package: lme4
Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'lme4'
that means you need to install the package. Do so by typing
install.packages("packagename", dep=T)