Answered step by step
Verified Expert Solution
Link Copied!

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

3.45 Rating (148 Votes )

There are 3 Steps involved in it

Step: 1

PROC SORT DATASASHELPHEART OUTWORKHEARTBY STATUS SEXRUNPROC TRANSPOSE DATAWORKHEART ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics Learning From Data

Authors: Roxy Peck

1st Edition

495553263, 978-1285966083, 1285966082, 978-0495553267

More Books

Students also viewed these Accounting questions

Question

What is cultural tourism and why is it growing?

Answered: 1 week ago

Question

What kind of rays are X-rays?

Answered: 1 week ago

Question

Contrast efficiency and utilization.

Answered: 1 week ago

Question

How can long-term capacity requirements be determined?

Answered: 1 week ago