DATASETS AND PROGRAMS
Below we give the datasets and programs used for the examples in Chapter 13 as well as two Excel files with implementation of the sample size formulas and most of the measures and analyses for 2-by-2 tables.
DATASETS
The datasets described in Appendix D can be downloaded as a SAS (Ver. 8.2) dataset or as a comma-separated file (.csv)
Format |
||
Dataset | SAS-data | Comma-separated file (.csv) |
sows | sows.sas7bdat | sows.csv |
milk1 | milk1.sas7bdat | milk1.csv |
milk2 | milk2.sas7bdat | milk2.csv |
colic | colic.sas7bdat | colic.csv |
bpcats | bpcats.sas7bdat | bpcats.csv |
All datsets (zipped) | data-SAS.zip | data-CSV.zip |
PROGRAMS
SAS - Download the examples from Chapter 13 here: sas-examples.sas
The programs have been written for the SAS system for Windows, Version 8.2, but should work on most versions of SAS. The output has been generated using the above version of SAS and differences in appearance might occur between SAS versions. All programs assume that the data sets are located in the SAS library ‘c’. This library can be constructed by the SAS code:
libname c ’c:\some\directory\with\the\data\sets’;
R - Download the examples from Chapter 13 here: R-examples.R
The R examples will require the extra functions found here:
itve-extras.RR is a statistical computer program, which can be downloaded and used for free under the General Public Licence (GPL). The homepage of the R-project is www.r-project.org
Excel - Sample size formulas and simple analyses
Disclaimer: The use of this software is at your own risk. While we do not believe that there are any serious mistakes in the formulas, we do not accept responsibility for any potential damage or loss that the use of these spreadsheets might cause.
sample-sizes.xls An implementation of the sample size formulas from Chapter 8 in "Introduction to Veterinary Epidemiology".
2by2.xls Implementation of most of the analyses and measures for 2-by-2 tables presented in Chapter 7 and 13 of "Introduction to Veterinary Epidemiology".