*This program reads the 2004 National Health Interview Survey 2004 househld Data File
*Note: This program is distributed under the GNU GPL. See end of
*this file and http://www.gnu.org/licenses/ for details.
*by Jean Roth Mon Jul 2 15:51:08 EDT 2007
*Please report errors to jroth@nber.org
*Change output file name/location as desired.
*Change the input file location as needed.
*If you have trouble running this program,
*then try opening a new syntax file & type this command:
*INCLUDE "c:\nhis2004_househld.sps".
*and choose to RUN ALL
file handle nhis2004_househld /name="c:\homes\data\nhis\ftp.cdc.gov\pub\Health_Statistics\NCHS\Datasets\NHIS\2004\househld.dat" .
data list file=nhis2004_househld /
rectype 1-2
srvy_yr 3-6
hhx 7-12 (a)
intv_qrt 13
assignwk 14-15
wtia_hh 16-21
wtfa_hh 22-27
livqrt 28-29
non_intv 30
acpt_fam 31-32
rej_fam 33-34
acpt_per 35-36
rej_per 37-38
acptchld 39-40
region 41
stratum 42-44
psu 45
.
* See the codebook for more detailed variable descriptions.
variable labels
.
list.
execute.
save outfile = 'c:\nhis2004_househld.sav'.
*Copyright 2007 shared by the National Bureau of Economic Research and Jean Roth
*
*National Bureau of Economic Research.
*1050 Massachusetts Avenue
*Cambridge, MA 02138
*jroth@nber.org
*
*This program and all programs referenced in it are free software. You
*can redistribute the program or modify it under the terms of the GNU
*General Public License as published by the Free Software Foundation;
*either version 2 of the License, or (at your option) any later version.
*
*This program is distributed in the hope that it will be useful,
*but WITHOUT ANY WARRANTY; without even the implied warranty of
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*GNU General Public License for more details.
*
*You should have received a copy of the GNU General Public License
*along with this program; if not, write to the Free Software
*Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
*USA.