Answered step by step
Verified Expert Solution
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.
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; quitStep 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