Help using Base SAS procedures

Regarding Proc T test

Reply
Contributor
Posts: 57

Regarding Proc T test

Dear All,

Here i have an data of BMI for household men and women like variables are Gender, Age, Village, Year and BMI, BMI_catergories in this i have to test the significance of BMI with gender and BMI in Years and BMI with the BMI catergories like Normal, overweight and underweight so for theis i am using 2 sample t test is it correct?


I request you all to suggest for an Idea.

Here is the codes for your reference

proc ttest data=Nutr_old.antpfin_05;

where village ="village";

class sex;

var BMI;run;st

Results are like this

                                                                                                                            The TTEST Procedure

 

                                                                                                                               Variable: BMI (BMI)

 

         
18619.25614.85380.52342.367133.0138
28819.14824.63380.494010.905132.0001
Diff (1-2) 0.10794.74380.7193

          
1 19.256118.215420.29674.85384.22105.7114
2 19.148218.166320.13004.63384.03585.4415
Diff (1-2)Pooled0.1079-1.31191.52774.74384.29115.3041
Diff (1-2)Satterthwaite0.1079-1.31271.5285

       
PooledEqual1720.150.8809
SatterthwaiteUnequal171.170.150.8810

       
Folded F85871.100.6675

Super User
Posts: 9,681

Re: Regarding Proc T test

If it was two level, you can use proc ttest for parameter test and proc npar1way(Wilconx test) for non-parameter test.

It it was three or more levels ,that means you need multi-comparison , check proc glm + means .

Xia Keshan

Trusted Advisor
Posts: 2,113

Re: Regarding Proc T test

for comparing the BMI Categories by sex, you would need PROC FREQ, as that is a 2x3 table.

If you scored the BMI categories to get a rank, you could use NPAR1WAY, but it is much less sensitive to differences than the original scale.

Ask a Question
Discussion stats
  • 2 replies
  • 232 views
  • 0 likes
  • 3 in conversation