picture of complicated surveyor instrument

Survey analysis in R

This is the homepage for the "survey" package, which provides facilities in R for analyzing data from complex surveys. The current version is 3.6-13. A much earlier version (2.2) was published in Journal of Statistical Software

A port of the package (version 3.6-8) to S-PLUS 8.0 is available from CSAN (thanks to Patrick Aboyoun at Insightful).

Features:

The NEWS file gives a history of features and bug fixes.

Comparison shopping:
Alan Zaslavsky keeps a comprehensive list of survey analysis software for the ASA Section on Survey Research Methods.


Using the survey package:

Some examples (in PDF) translated from Stata and SUDAAN examples at UCLA Academic Technology Services.


Tutorials

I gave a short course for the Washington Statistical Society on March 15-16 2007. The first day was on R and the slides are a selection from these. The second day was on the survey package, slides here.

Norman Breslow and I gave a short course on complex survey designs for epidemiology at the 2008 WNAR (Biometric Society) meeting, UC Davis, June 22, 2008. My sessions were an overview of the survey package and an introduction to calibration.

I gave a talk on future directions for the survey package at useR 2007. This includes methods for handling large surveys by storing the data in a relational database. The surveyNG package provides a place to experiment on this sort of thing without breaking the current functionality. Note that 'surveyNG' is experimental: the interface is likely to change, and there are likely to be bugs. Feedback, especially on the design and on efficiency issues is still very welcome.


Help pages:

The PEAS project at Napier University has Practical Examplars for the Analysis of Surveys using R (as well as other packages).
Thomas Lumley