1. Access the SAS Table Heart from the Framighan heart study in the SASHELP dire
ID: 3074149 • Letter: 1
Question
1. Access the SAS Table Heart from the Framighan heart study in the SASHELP directory and read this data file in data step by using the set statement Print the first 20 observations Make a frequency table to find the number of individuals within each Weight Status and Sex category, and add a frequency plot Make a t test to compare the Cholesterol levels between males and females for each Weight Status category Use proc sgpanel to build panel boxplots to compare Cholesterol levels between males and females for each Weight Status category 2. 3. 4. 5. 6. Briefly discuss the results found in 3 to 5 7. Save all your results in a .pdf fileExplanation / Answer
Solution1:
using data step create sas dataset
sashelp is permanent library.
with set statement we can copy the sas dataset
First use proc contents to check variables and observtions.
Proc contents data=sashelp.heart;
run;
SAS Program.
Data FrHeart;
set sashelp.Heart;
run;
Solution2:
use procedure print
SAS Program is
Proc print data=FrHeart(obs=20);
run;
Solution3:
Use proc freq
Proc freq data=FrHeart;
tables weight_status *sex/out=FrHearttemp;
run;
proc gplot data=FrHearttemp;
plot count*weight_status =sex;
symbol1 interpol=join;
run;
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.