Question: I need help with SAS coding Extend the code in Step 6 by adding six more IF - THEN sets of statements to check for
I need help with SAS coding
Extend the code in Step by adding six more IFTHEN sets of statements to check for disease dxdx value ranges and create the other six indicators, DXGRP DXGRP DXGRP DXGRP DXGRP DXGRP DXGRP
Your final data set, STEP should have PATID and the seven DXGRP# indicators.
DX values DXGRP DESCRIPTION
pertussiswhooping cough
infectious mononucleosis
syphilis and other venereal diseases: STDs
myocardial infarction
cerebovascular disease
chronic kidney disease
chronic kidney disease
chronic kidney disease
acute sore throat
Keep only PATID DXGRPDXGRP
Don't forget to output your processing after the DOEND loop.
Finally, add a LABEL statement to add variable labels as follows
DX values DXGRP DESCRIPTION
DXGRP pertussiswhooping cough
DXGRP infectious mononucleosis
DXGRP syphilis and other STDs
DXGRP myocardial infarction
DXGRP cerebovascular disease
DXGRP chronic kidney disease
DXGRP acute sore throat
These tasks will complete the DATA step.
Then, use a PROC FREQ to show the frequency of DXGRP through DXGRP as
DXGRP DXGRP and DXGRP are all zero frequency.
DXGRP appears as in Steps and
DXGRP: Value appears in three observations.
DXGRP:
Value Frequency
DXGRP: Value appears in three observations
All variable labels should appear in the output tables!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
