Task 1
Task 1
QUESTION Using the dataset from group assignment: a) Based on your creativity by using appropriate procedure, produce short Report. (Hint: You can choose Proc TTEST, Proc ANOVA, Proc GLM, Proc REG, Proc CORR etc)
In task 1, the PROC UNIVARIATE procedure with PROBPLOT statement is used in order to test for normality of the body mass index (BMI).
proc univariate data=hayatul.bmi plots; probplot BMI; run;
The figure above shows that the BMI data are normally distributed. This is due to the points on plot that form a linear pattern. Therefore we can conclude that the normality assumption is satisfied. Since the data is normally distributed, we have proceeded with PROC REG procedure. In this procedure we wish to study the linear relationship, the significance of the model and also the existence of multicollinearity .
proc reg data=hayatul.bmi; var BMI; model BMI=REG_ID AGE HT WT PULSE SYS DIAS CHOL /r vif tol; run;
The table below shows that the model is significant since it give the p-value ( <0.0001 ) which is less than alpha 0.05. Besides, we also can concluded that the total variation of the model is 99.35% which explained by the variables.
In order to investigate the multicollinearity, from the table below,we have found that theres no multicollinearity exist in this model. This is due to the value of VIF for each variable is less than 10 and the value of Tolerence that more 0.2.
b) Produce the short Report using SAS macro based on your creativity. ( Hint: You can refer the notes - SAS Macro Programming)
i.
%let genclass1=Female; proc print data=hayatul.bmi noobs; where GENDER="&genclass1"; title ' The Body Mass Index(BMI) For Female Patients'; run;
ii. iii.
Note: You can refer from SAS macro programming notes. We wish to summarize the in term ..
proc sql; create table BMI as select NAME,GENDER,AGE,BMI, case when BMI gt 30 then 'Obese' when 30 ge BMI ge 25 then 'Overweight' when 25 ge BMI ge 18.5 then 'Normal' else 'Underweight' end as RESULT from hayatul.bmi order by GENDER; quit; proc sql; select NAME,GENDER,AGE,BMI,RESULT from BMI order by GENDER; quit;