Hi, I want to produce a barchart of Response Rate by group over time and plot Mean result of another variable over time in the same graph. If I try SGPLOT, SAS give me a warming saying that he expect VLINE statement to have a GROUP option as well.
proc sgplot data=ador;
vbar TPTN / response=xx group=RESP;
vline x=TPTN y=spepbe / y2axis;
yaxis label='Cumulative Percent of Patients';
Can I do it using Proc template? Can somebody help me?
Based on your YAXIS label, I assume your data is pre-summarized. If so, we have a VBARPARM/hBARPARM that you use instead (assuming you have SAS 9.3 or greater). You would overlay a SERIES with that statement. You code would look something like this:
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.