SAS, single-factor model. Child physical measurements.
- Tung San
- Jun 23, 2022
- 1 min read
Investigate: sex effect on height, chest, mid-upper arm circumference amongst 2-yrs-old children.
Datasets.sas
data measures; /*2-yrs-old child data*/
input sex $ height chest muac; /*MUAC: Mid-Upper Arm Circumference*/
cards;
M 78 60.6 16.5
M 76 58.1 12.5
M 92 63.2 14.5
M 81 59.0 14.0
M 81 60.8 15.5
M 84 59.5 14.0
F 80 58.4 14.0
F 75 59.2 15.0
F 78 60.3 15.0
F 75 57.4 13.0
F 79 59.5 14.0
F 78 58.1 14.5
F 75 58.0 12.5
F 64 55.5 11.0
F 80 59.2 12.5
;
run;
Analysis_phyicalTest.sas
%include "/home/u60665181/SAS Revision/GLM/Datasets.sas";
/*pool=test: Test of Homogeneity of Within Covariance Matrices*/
proc discrim data=measures pool=test short;
class sex;
var height chest muac;
run;

The two populations (Male, Female) shares the same covariance matrix.
/*Test passed. Then perform MANOVA on sex factor.*/
proc glm data=measures;
class sex;
model height chest muac = sex/ nouni;
"M Anova on sex factor": manova H=sex;
"M Anova on sex factor (equivalence)": manova H=sex M=height, chest, muac;
run;

MANOVA on sex: No sex effect on responses. i.e. No differences in (height, chest, muac) measures amongst male and female in the sample.
Kommentare