Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using PROC SORT, arrange (or sort) the SASHELP.HEART dataset in ascending order by STATUS and SEX to a new temporary SAS data set. Then, transpose
Using PROC SORT, arrange (or sort) the SASHELP.HEART dataset in ascending order by STATUS and SEX to a new temporary SAS data set. Then, transpose the character variable, SMOKING STATUS, from the temporary sorted HEART dataset and create a new temporary transposed data set by SMOKING_STATUS. Then, construct a DATA step with 3, 221 elements that selects and changes the STATUS = "Alive" and _NAME_ = "Smoking Status observations for SMOKING STATUS -smoker "Smoke-free" for each patient. Finally , produce an EXCEL spreadsheet file using PROC REPORT by specifying the ODS EXCEL destination containing the revised results.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started