02-25-2015 07:49 PM
I want to plot histogram of a variable, which has character values. Values of variable interest has regular numeric values such as (1,23,4) , 'na' to indicate not applicable and 's' to indicate supressed value.
I am wondering if any body has done anything similar or has any paper to reference it.
02-26-2015 01:49 PM
Although I will always defer to Cynthia on matters SAS, when I tried this out upon your original post I used a different task:
Use the Bar Chart choice on the Graphs menu item;
Pick a Simple Vertical Bar;
Select the Data tab on the left, and drag your variable to the Column to chart area;
Click on Run.
02-26-2015 11:28 AM
Hi: If you are using Enterprise Guide tasks, then choose the One-way frequency choice on the Task menu (Tasks-->Describe-->One-Way Frequency) and then on the panel on the left, choose Plots and select either a horizontal or vertical plot. Or, if you are typing code, then investigate the PLOTS=(ALL) option for the TABLES statement in PROC FREQ. A screen shot of the Task window for Plots is shown (this is a partial page from the course notes for the Enterprise Guide 1 course SAS Training in the United States -- SAS Enterprise Guide 1: Querying and Reporting ).