Dear friends,
I am doing data analysis for two time points, 10 year difference.
what tests should I use for categorical variables, e.g self-reported alcohol and cigarette intake, and education level? please help.
Very kind regards
Please clearly state what the response variable is that you are planning on analysing, and clearly state your planned analysis; and we can tell you how to do this in SAS.
proc ttest data=Start_women;
title 'Paired t-test with proc ttest, paired statement';
paired C14_0Myristic_2015*PLC14_2005
C16_0Palmitic_2015*PLC16_2005
C18_0Stearic_2015*PLC18_2005
C16_1n7Palmitoleate_2015*PLC16_1n7_2005
C18_1n9Oleic_2015*PLC18_1n9_2005
C18_3n3ALA_2015*PLC18_3n3_2005
C20_5n3EPA_2015*PLC20_5n3_2005
C22_5n3DPA_2015*PLC22_5n3_2005
C22_6n3DHA_2015*PLC22_6n3_2005
C18_2n6Linoleic_2015*PLC18_2n6_2005
C18_3n6GLA_2015*PLC18_3n6_2005
C20_3n6_2015*PLC20_3n6_2005
C20_4n6ARA_2015*PLC20_4n6_2005
C22_4n6Adrenic_2015*PLC22_4n6_2005
C22_5n6Osbond_2015*PLC22_5n6_2005
C20_3n9Mead_2015*PLC20_3n9_2005;
run;
You want a Chi-Squared test to compare the binomial proportions (percent 0 vs percent 1) at the two time periods. This can be done using PROC FREQ with the CHISQ option.
Thank you very much.
I was not sure, Now I am.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.