1 understanding and using namcs and nhamcs data part 2 using public-use files eric nawar ambulatory...

12
1 Understanding and Using NAMCS and NHAMCS Data Part 2 –Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics U.S.DEPARTM ENT O F HEALTH AND HUM AN SERVICES C enters forD isease C ontroland Prevention N ationalC enterforH ealth Statistics U.S.DEPARTM ENT O F HEALTH AND HUM AN SERVICES C enters forD isease C ontroland Prevention N ationalC enterforH ealth Statistics

Upload: alvin-wood

Post on 19-Jan-2018

215 views

Category:

Documents


0 download

DESCRIPTION

3 Calculating Rates Example: Visits per 100 persons Method: Create a new weight totrt = (patwt/total population) * 100 Example: Visits per 100 persons (for each sex) if sex=female then sexwt=(patwt/female pop) * 100 else if sex=male then sexwt=(patwt/male pop) * 100 etc.

TRANSCRIPT

Page 1: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

1

Understanding and Using NAMCS and NHAMCS Data

Part 2 –Using public-use files

Eric NawarAmbulatory Care Statistics

BranchDivision of Health Care Statistics

U.S. DEPARTMENT OF HEALTH AND HUMAN SERVICESCenters for Disease Control and PreventionNational Center for Health Statistics

U.S. DEPARTMENT OF HEALTH AND HUMAN SERVICESCenters for Disease Control and PreventionNational Center for Health Statistics

Page 2: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

2

Overview

- For each program (SAS, Stata, SUDAAN):

• Review public use files

• Create dataset

• Run exercises

- Other notes/considerations:

• Combining multiple years of data

• Multiple settings

- Notes on exercises:

• Calculating rates

• Calculating drug mentions

• Procedures used

Page 3: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

3

Calculating Rates

Example: Visits per 100 persons

Method: Create a new weight

totrt = (patwt/total population) * 100

Example: Visits per 100 persons (for each sex)

if sex=female then

sexwt=(patwt/female pop) * 100

else if sex=male then

sexwt=(patwt/male pop) * 100 etc.

Page 4: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

4

RecordRecord Med1Med1 Med2Med2 Med3Med3 Med4Med4 Med5Med5 Med6Med6 Med 7Med 7 Med 8Med 8 TotalTotal

11 3290532905 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 11

22 9500595005 0299502995 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 22

33 2674026740 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 11

44 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 9000090000 00

55 2122821228 3546535465 4029540295 9000090000 9000090000 9000090000 9000090000 9000090000 33

Note: 90000=No drug mention.

Calculating Drug Mentions

Page 5: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

5

Calculating Drug Mentions, cont.

Method: Use an array to sum the number mentions in each record

total=0;

array meds(8) med1-med8;do j=1 to 8;

if meds(j) ne '90000' then total=total+1; end;

Page 6: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

6

Calculating Drug Mentions, cont.

Medications: Up to 8 … j=1 to 8

Drug class: 8 meds * 3 classes ... j=1 to 24

Drug ingredients: 8 meds * 5 ing … j=1 to 40

Another example:

X-rays: chest, extremity, other ... j=1 to 3

Page 7: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

7

Procedures

ProgramProgram Categorical Categorical VariablesVariables

Continuous Continuous VariablesVariables

SASSAS PROC PROC SURVEYFREQSURVEYFREQ

PROC PROC SURVEYMEANSSURVEYMEANS

STATASTATA SVY: TABSVY: TAB SVY: MEANSVY: MEAN

SUDAANSUDAAN PROC PROC CROSSTABCROSSTAB

PROC DESCRIPTPROC DESCRIPT

Page 8: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

8

C:\NAMCS\DUC\C:\NAMCS\DUC\

Hands-on Exercises

Page 9: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

9

Combining Multiple Years of Data

• Variables: sometimes rotate on and off surveyVariables: sometimes rotate on and off survey• Annual estimate: divide estimate by the number of yearsAnnual estimate: divide estimate by the number of years• Weighting: Weighting:

• Beginning in 2004, calendar quarter was used in nonresponce Beginning in 2004, calendar quarter was used in nonresponce adjustments. Change in weight did not significantly alter estimates.adjustments. Change in weight did not significantly alter estimates.

• Beginning in 2003, the number of weekly visits and the number of Beginning in 2003, the number of weekly visits and the number of weeks in the year the physicians saw patients was also used.weeks in the year the physicians saw patients was also used.

*****New weight increased visit estimation by 12% (therefore old weight *****New weight increased visit estimation by 12% (therefore old weight not comparable to new – see 2003 NAMCS ADR for more info)not comparable to new – see 2003 NAMCS ADR for more info)

• ICD codes: currently using ICD-9-CM, prior to 1979 used ICDA (based ICD codes: currently using ICD-9-CM, prior to 1979 used ICDA (based on ICD-8)on ICD-8)

Need to consider changes to the survey over the years:

Page 10: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

10

Combining Multiple Years of Data (cont.)

Design variables: beginning in 2003, multi stage design Design variables: beginning in 2003, multi stage design variables that were available in prior years were changed to variables that were available in prior years were changed to single stage (ultimate cluster design).single stage (ultimate cluster design).

Code to create ultimate cluster design variables (for each Code to create ultimate cluster design variables (for each year prior to 2002):year prior to 2002):

CPSUM=PSUM;CSTRATM = STRATM;IF CPSUM IN(1, 2, 3, 4) THEN DO;CPSUM = PROVIDER +100000;CSTRATM = (STRATM*100000) +(1000*(MOD(YEAR,100))) + (SUBFILE*100) + PROSTRAT;END;ELSE CSTRATM = (STRATM*100000);

Page 11: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

11

• NAMCS, ED, and OPD can be combined in one or multiple NAMCS, ED, and OPD can be combined in one or multiple years:years:SETTYPE=1 (NAMCS), 2 (ED), or 3 (OPD)SETTYPE=1 (NAMCS), 2 (ED), or 3 (OPD)

• OPD and NAMCS should be combined to get estimates of OPD and NAMCS should be combined to get estimates of ambulatory physician care especially for African-American, ambulatory physician care especially for African-American, Medicaid or adolescent subpopulationsMedicaid or adolescent subpopulations

• ED and OPD were sampled together and should therefore be ED and OPD were sampled together and should therefore be combined initially (can “subpop” the setting of interest combined initially (can “subpop” the setting of interest afterwards)afterwards)

• Only NAMCS has physician specialtyOnly NAMCS has physician specialty

Combining multiple settings

Page 12: 1 Understanding and Using NAMCS and NHAMCS Data Part 2 Using public-use files Eric Nawar Ambulatory Care Statistics Branch Division of Health Care Statistics

12

Where to get more information?• Public Use Documentation:Public Use Documentation:

A description of the surveyA description of the survey Record formatRecord format Marginal data (summaries)Marginal data (summaries) Various definitionsVarious definitions Reason for Visit classification codesReason for Visit classification codes Medication & generic namesMedication & generic names Therapeutic classesTherapeutic classes

• www.cdc.gov/nchs/namcs.htmwww.cdc.gov/nchs/nhamcs.htm

• Eric [email protected] [email protected]

• Call Ambulatory Care Statistics Branch at 301-458-4600Call Ambulatory Care Statistics Branch at 301-458-4600