WELCOME TO THE SELF CONTROLLED CASE SERIES METHOD WEBSITE! |
|
HOME | PAPERS | STATA | GENSTAT | GLIM | SAS | R | ABOUT US |
This section is still under development. All script files were written by Heather Whitaker for R version 2.5.0 (free software available from http://www.r-project.org/). Please let us know if you have any suggestions for improving them.
There are two ways in which we can fit the case series model after the data have been reformatted:
We are currently exploring which is the most efficient. We hope to put R scripts for all the examples in the tutorial paper here soon. For the time being, here are a few examples using clogit:
To run the MMR and meningitis in Oxford example detailed in the tutorial paper save these two files:
'ox.txt', the data in a tab-delimited text file.
'oxford.r', the commands in an r script file.
Open oxford.r and select 'run all' under the edit menu.'itp.r' fits the multiple risk periods example on p.1782-1783 of the tutorial paper.
'itp.r', r script file
'intuss.r' fits analysis 5, repeat exposures example detailed on p.1787-1789 of the tutorial paper.
'intuss.txt', data
'intuss.r', r script file
Apologies for the lack of explanation in the script files, we will update these soon, please ask if you need any help!