Biostatistics Consulting Center at University of Massachusetts, Amherst
Link 1 : Link 2 Biostat & Epi : SPHHS : UMass
HOME

Contact Us
Resources
SAS Tools

Format catalog
Codebook
Missing Data

Grant Develop.
Data Unit

Stat. Consulting

TOP


MAKE CODE BOOK BASED ON A DATASET AND A FORMAT FILE OR A FORMAT CATALOG

The following procedure describes how to generate a code book for datasets. In order to generate the code book, a dataset and its format file should share a common name field. You can generate code book using a dataset with a format file or with a format catalog.

If a dataset has no format file, then you create the format file or use format catalog. The sample code to geneate the format file and a sample dataset are basefmt.txt. and base.txt respectively. Then you use the code codebook.txt to generate a code book with the following statement.

%CODEBOOK(fmtin=basefmt, din=base, htmlout=base.html);

If you use a format catalog such as the one called "w2form" stored in directory "J:\Projects\watchII\data\new". Then the statement to generate code book is as follow:.

%CODEBOOK(fmtin=fmt, din=base, htmlout=base.html);

Here is a sample output: base.html.

 

Link 1 : Link 2 Biostat & Epi : SPHHS : UMass

© 2004 University of Massachusetts Amherst. Site Policies.
This site is maintained by Biostatistic Conusulting Center at University of Massachusetts, Amherst.
Send comments or questions about this web site to mzorn@schoolph.umass.edu.
This page was last modified on February 11, 2004.