Hi, I am using survey data and trying to change the legend value labels highlighted in the picture below to just 'baseline' and 'midintervention'. This is tricky because they are values of the variable name: redcap_event_name and not variables themselves. I did not code these values as shown in the legend so I am not sure why they are appearing in this format. I have tried multiple codes (examples below) but continue to receive error messages and no changes in the legend. Any insight? PROC SGPANEL DATA=base_mid; PANELBY exp_con; vbar chew1 / GROUP = redcap_event_name groupdisplay=cluster; keylegend / title='Assessment' valueattrs=(baseline_arm_1= 'baseline' midintervention_6_arm_1='midintervention'); TITLE 'Health Literacy Q1J'; RUN; PROC SGPANEL DATA=base_mid; PANELBY exp_con; vbar chew1 / GROUP = redcap_event_name groupdisplay=cluster legendlabel = 'baseline'; keylegend / title='Assessment'; TITLE 'Health Literacy Q1J'; RUN; NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software 9.4 (TS1M5) Licensed to MEDICAL UNIVERSITY OF SOUTH CAROLINA, Site 70085904. NOTE: This session is executing on the X64_8HOME platform. NOTE: Updated analytical products: SAS/STAT 14.3 SAS/ETS 14.3 SAS/OR 14.3 SAS/IML 14.3 SAS/QC 14.3
... View more