Analysis of Complex Survey Data Katherine M. Keyes
Purpose of this class Teach you how to analyze complex survey data using SUDAAN Provide you with the tools to: – 1) find datasets that fit your research interests; – 2) download and manage those datasets; – 3) do your own analyses
Structure of the class 1:00-2:00Lecture 2:00-3:30Guided exercise 3:30-3:45Break 3:45-5:00Independent research project
Today’s schedule Introduction to each other Key concepts in complex surveys Introduction to the NHANES – Focus on describing the complexities in sample and design weights PREPARING AN ANALYTIC DATASET – Locate variables – Download data files – Append and merge datasets – Clean and recode data – Format and label variables – Save datasets
Who am I?
Who are you?
What is ‘complex survey data’ Complex survey data usually refers to sample designs in which respondents have been sampled in a way that is multi-stage, stratified, unequally weighted, and/or clustered. Because of these design elements, the sample is no longer “randomly selected”, which violates the assumptions of basic large-sample statistics
What is ‘complex survey data’ Because of this, we need to take into account the design elements when estimating standard errors.
Two types of weights commonly used SAMPLE WEIGHTS: adjust for oversampling of certain typically hard to reach groups (e.g., young people) and informative nonresponse DESIGN WEIGHTS: adjust the standard errors for the nonrandom probability of selection into the sample TAKE HOME MESSAGE: Sample weights affect the ESTIMATES and not the STANDARD ERRORS Design weights affect the STANDARD ERRORS and not the ESTIMATES We need SUDAAN to incorporate the design weights.
Design weights: what are they Strata: larger geographic unit Primary Sampling Units (PSUs): generally single counties or groups of small counties Households
Introduction to the data we will be using in this class National Health and Nutrition Examination Survey “A program of studies designed to assess the health and nutritional status of adults and children in the United States. The survey is unique in that it combines interviews with physical examinations.”
Introduction to the data we will be using in this class Years Survey nameNHES INHES IINHES III NHANES I NHANESI I NHANES III Phase I NHANES III Phase II NHANES NHANES NHANES NHANES NHANES NHANES Age range
Domains of inquiry in the NHANES Demographic background Housing characteristics Smoking Consumer behavior Income Food security Tracking and tracing Acculturation Arthritis Audiometry Blood pressure Cardiovascular disease Dermatology Diabetes Dietary screener Dietary behavior Early childhood Health insurance Hospital utilization and access to care Immunization Kidney conditions Occupation Oral health Osteoporosis
Domains of inquiry in the NHANES Physical activity and physical fitness Physical functioning Respiratory Health and Disease Sleep disorders Weight history Reproductive health Illegal drug use Depression Alcohol use Pesticide use Bowel health
Physical exam includes measures of: Arthritis Audiometry Bone density (DXA) Anthropometry Oral Glucose Tolerance Test Oral Health Physician’s Exam Respiratory Health
Laboratory components include measures of: Venipuncture Urine collection Bone mineral status markers Diabetes profile Infectious disease profile Oral HPV C-reative protein Thyroid profile Standard biochemical profile Kidney disease profile Pregnancy test Prostate Specific Antigen Nutritional biochemistries and hematologies STD profile Blood lipids Environmental health profile
DNA Blood samples for DNA purification were collected from participants age 20 or more years in survey years and These are restricted access data
Landmark findings and public health results High blood lead levels – Lead out of gasoline Low folate levels – Mandatory food fortification Rising levels of obesity – Public health action plan Racial/ethnic disparities in Hepatitis B – Universal vaccination of all infants and children
NHANES not for you? The concepts we will discuss apply to many other publicly available datasets, and you are encouraged to use these data for your in-class project if your research questions are not covered in the NHANES Where can I find other publicly available datasets? – ICPSR:
SAMPLE WEIGHTING IN THE NHANES
Design weights: variable names Strata: SDMVSTRA PSU: SDMVPSU
Sample weights in the NHANES If only data from the interviewed sample is used, then the appropriate SAS variable is: – WTINT2YR If data from the medical examination is used, then the appropriate SAS variable is: – WTMEC2YR Some data are only collected on sub-samples of NHANES participants. These data are generally not publicly available or are only released a few years after the main interview data. If you are using data on a subsample of NHANES participants, appropriate subsample weights must be used and they are included on any data file where relevant.
Combining NHANES samples For NHANES , SDMVSTRA is numbered 1 to 13; for NHANES SDMVSTRA is numbered 14-28; for NHANES SDMVSTRA is numbered 29-43; etc. Therefore, two year NHANES cycles can be combined without any recoding of this variable
Combining NHANES samples: For the and survey periods, Mexican Americans were oversampled but non-Mexican American Hispanics were not oversampled. Therefore, estimates for Hispanics that are not Mexican Americans are generally unreliable and should not be analyzed Further, estimates for ‘all Hispanics’ should not be calculated
Combining NHANES samples: , The sample design of NHANES is different than the sample designs for earlier cycles. Adolescents were no longer oversampled Non-Mexican American Hispanics were oversampled, allowing for estimates of “all Hispanics” (but smaller subgroups remain unreliable).
Summary: combining samples The NHANES sample designs for the periods and were similar, such that combining data cycles within these periods does not present any analytic issues. When combining with the data, however, data users should not create estimates for total Hispanics for the data period. For non-Hispanic white, non-Hispanic black, and Mexican American sample domains, rescaling the sample weights to create four-year weights should be sufficient But users should check estimates carefully to see if the four year estimates and sampling errors are consistent with each set of 2 year estimates.
Reweighting the data when combining samples When combining two or more 2-year cycles of the continuous NHANES, the user must calculate new sample weights before beginning any analysis of the data. A set of four year weights has already been created for the data (e.g., for the MEC sample it’s WTMEC4YR). For four year estimates for , one can create a new variable for a four year weight by assigning ½ of the 2 year weight for if the person was sampled in or assigning ½ of the 2 year weight for if the person was sampled in For an estimate for the 6-years of , a 6-year weight variable can be created by assigning 2/3 of the 4 year weight for if the person was sampled between or assigning 1/3 or the 2 year weight for if the person was sampled in
LAB #1: PREPARING AN ANALYTIC DATASET Open the Word document “Lab 1: Preparing an analytic dataset”