HI all,
i am working in a market research company. now i am doing my projects in SAS, but i am strucked with mutliple response questions. can any one help me on this,
i have a data similar to this
Slno | Q1_1 | Q1_2 | Q1_3 |
1 | 1 | 0 | 1 |
2 | 0 | 0 | |
3 | 1 | 1 | 0 |
4 | 1 | 0 | |
5 | 1 | 1 | 1 |
6 | 0 | 1 | |
7 | 0 | 1 | 1 |
8 | 1 | 0 | 1 |
9 | 1 | 1 | |
10 | 1 | 0 | 0 |
i want output in single table using proc tabulate. Below is the spss output
Count | Column N % | ||
$Q1 | 0 | 8 | 80.0% |
1 | 9 | 90.0% |
i would be greatfull if some one could program the same data in to SAS and give me the output as well as the code used.
How do you get a count of 8 for 0 values? The first column has 3 0s, 2nd has 3 and 3rd has 4?
Similarly the 1's have 7, 3 and 6 per column which makes it hard to get a count of 9.
I suspect you are leaving out the SPSS steps done before that output as there are usually strong parallels in the program logic between SPSS and SAS even though the details differ.
Thanks for you reply Ballardw
could you help me in replicating the SPSS table in SAS to get an output in a single table using proc tabulate.
of 10 rows, 8 had one or more 0's and 9 had one or more 1's.
Thanks for you reply Fayaz,
i am already work on this example its not work for me.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: