Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following SAS statements in PROC SQL which generate a table HEIGHT_SUM from SASHELP.CLASS where the library SASHELP has been defined in SAS already.

Consider the following SAS statements in PROC SQL which generate a table HEIGHT_SUM from SASHELP.CLASS where the library SASHELP has been defined in SAS already.

image text in transcribed

By using Data Step, PROC SORT and PROC MEANS, rewrite the above SAS program to generate the same data set HEIGHT_SUM. [Note that a number of intermediate data sets may be produced and you are not required to remove them for simplicity.]

proc sql; create table height sum as select sex, age, count (*) as count, avg(height) as avg_height, min(height) as min_height, max (height) as max_height, std(height) as std_height from sashelp.class group by sex, age having avg(height) > 60; quit; proc sql; create table height sum as select sex, age, count (*) as count, avg(height) as avg_height, min(height) as min_height, max (height) as max_height, std(height) as std_height from sashelp.class group by sex, age having avg(height) > 60; quit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

2-6. What are the six main categories of nonverbal signals? [LO-5]

Answered: 1 week ago

Question

9-17. How are emotional and logical appeals balanced?

Answered: 1 week ago

Question

9-16. How does the writer establish credibility?

Answered: 1 week ago