I was wondering whether there is a specific procedure in SAS which can handle binary correlated data. More specifically I have a sample of 400 individuals who have selected their food likes among a variety of available options (binary). Also the participants indicated their age, whether they are active or not and their gender. The food options were: pizza, salad, cheese cake and juices. I wanted to know whether there is a procedure in SAS which can explore the correlations between the food options among different demographics. I appreciate if you can help me with this (e.g. younger males who are active and like salad tend to like juices as well).
There are a couple of ways to approach this. One way would be using the FREQ procedure on Age vs Food Options and test for associations (or on Active or Gender vs Food Options, etc... whatever you would be interested in). There are some key words to use in the options to test for associations between class variables.
You could also just look visually by plotting the different Food Options vs the binary variables such as Age or Gender and determine if there is a change in any of the classes for any of the binary variables. Not an actual statistical test, but sometimes looking at plots visually will give you an idea of what could be significant and what to test for significance. Hope this helps and is what you were looking for. Good luck!
Thanks a lot for your reply I was actually looking for a prediction model. So that based on these data I can develop a model that can predict what would be the preference of another sample based on their demographic data. Something like a multivariate logistic regression.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.