BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi. This might be a basic question but my SAS skills are a bit rusty. I have created tables using proc tabulate that show the range of responses to a survey question over the course of 4 periods. I now want to graph the data from each table. Does Proc Tabulate allow me to output the data? Do I need to do this using a different procedure and then output it? Thanks.
2 REPLIES 2
deleted_user
Not applicable
although Proc Tabulate has an out= option you might find it simpler to graph the input to tabulate. If you post some sample data, preliminary (Tabulate) code and some idea of the dimensions/responses that you are interested in graphing, we might be able to help.

Good Luck

PeterC
deleted_user
Not applicable
Here's a sample of the code:

proc tabulate data=second;
by unit;
tables q19*colpctn,quarter;
class q19 quarter;
format q19 ep.;
run;

This creates a basic 5x4 table. However, there are 28 units so there are 28 separate tables. The basic layout of the table is:

Quarter 1 Quarter 2 Quarter3 Quarter4
Excellent 50% 44% 53% 40%
Very Good 31% 39% 20% 40%
Good 9% 11% 20% 10%
Fair 3% 0% 7% 7%
Poor 6% 6% 0% 3%

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 699 views
  • 0 likes
  • 1 in conversation