I have two continuous variables and one category variable, so I use sgpanel to plot separated figures. I'd like to how I can add a P-value and parameter estimates to the figures. I tried the way I used in sgplot function but it didn't work. Below is what is in SAS errors, warnings, notes. Does anyone know a solution?
The SGPANEL Inset statement expects a VARIABLE, or multiple variables, to hold values to display in each panel and should hold the value(s) for the panel created for the PanelBy variable(s). This is one of the statements that behaves quite differently between Sgplot and Sgpanel.
If it is single set of text to display look at using an Annotate dataset.
BTW that text would not resolve correctly in Sgplot either. Macro variables need to be inside double quotes, not the single quotes you used.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.