BookmarkSubscribeRSS Feed
nab102
Fluorite | Level 6

Hi,

I'm new to sas and want to make confidence for braplots ( bounding at 0-100%) . I have dataset with three variables and they are all categorical. This is how the data looks like. 

                 Area_of_interst , Meds, Response, 
                 "Internal Med", "asprin", "yes",
                 "Internal Med", "vitamins","no",
                  "Internal Med", "folic acid","yes",
                  "Emergency Med", "asprin", "yes",
                 "Emergency Med", "vitamins","no",
                  "Emergency Med", "folic acid","yes",

 This is the SAS code I have . Please help me

proc sgplot data = out2;
vbar meds / response = RowPercent group=area_of_interest groupdisplay=cluster ;
where response = "yes";
run;

 

1 REPLY 1
sbxkoenk
SAS Super FREQ

SAS/STAT® 15.2 User's Guide

 

The FREQ Procedure
Example 46.4 Binomial Proportions
https://go.documentation.sas.com/doc/en/statug/15.2/statug_freq_examples04.htm


Statistical Computations -- Binomial Proportion
https://go.documentation.sas.com/doc/en/statug/15.2/statug_freq_details37.htm

 

Usage Note 30333: FASTats: Frequently Asked-For Statistics
https://support.sas.com/kb/30/333.html

Look for the key-term << proportion >> : 20 hits

 

Cheers,

Koen

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 694 views
  • 0 likes
  • 2 in conversation