Programming the statistical procedures from SAS

Chi square test?

Accepted Solution Solved
Reply
Super Contributor
Posts: 297
Accepted Solution

Chi square test?

Hello:

 

Assume we try to investigate whether there will be potential exposure to toxin A if people have high intake seafood diet. I plan to use Chi square test to compare the urine matabolite with the normal diet and high seafood intake diet in three months.  There will be 30 participants in the normal diet group and 30 participants in the seafood intake group.  And the urine metabolite is the continuous data.

 

Am I select the right statistical model?  How to write a SAS code?  Is it used Proc freq / Chisq?  But how? Thanks.

 

 


Accepted Solutions
Solution
‎01-19-2017 11:16 AM
Super User
Posts: 18,586

Re: Chi square test?

If you don't know how to use a PROC the first step should be the SAS documentation

http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_freq_exa...

Specifically the examples.

 

The next is Lexjansen.com

 

The third is here Smiley Happy

 

If you're just measuring the presences of exposure/incident of exposure then Chi Square is appropriate. If metabolite is continuous I think you're dealing with a T-Test - possible a paired t-test because you have before and after for two different exposure groups.

 

T-Test has PROC TTEST and/or PROC ANOVA and/or PROC GLM that may be applicable.

View solution in original post


All Replies
Solution
‎01-19-2017 11:16 AM
Super User
Posts: 18,586

Re: Chi square test?

If you don't know how to use a PROC the first step should be the SAS documentation

http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_freq_exa...

Specifically the examples.

 

The next is Lexjansen.com

 

The third is here Smiley Happy

 

If you're just measuring the presences of exposure/incident of exposure then Chi Square is appropriate. If metabolite is continuous I think you're dealing with a T-Test - possible a paired t-test because you have before and after for two different exposure groups.

 

T-Test has PROC TTEST and/or PROC ANOVA and/or PROC GLM that may be applicable.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 129 views
  • 2 likes
  • 2 in conversation