series x=col2 y=col3 / markers markerattrs=(color=blue size=8 symbol=CircleFilled)
lineattrs=(pattern=1 color=blue) name="lsc" legendlabel="Language score" break;
series x=col2 y=col4 / markers markerattrs=(color=orange symbol=SquareFilled size=8)
lineattrs=(pattern=1 color=orange) name="psc" legendlabel="Performance score" break;
series x=col2 y=col5 / markers markerattrs=(symbol=TriangleFilled size=8 color=red )
lineattrs=(pattern=1 color=red) name="psic" legendlabel="Processing speed Index" break ;
series x=col2 y=col6 / markers markerattrs=(color=black symbol=DiamondFilled size=8)
lineattrs=(pattern=1 color=black) name="tiqc" legendlabel="Total Intelligence quotient (IQ)" break ;
series x=col2 y=col7 / markers markerattrs=(symbol=StarFilled size=8 color=green )
lineattrs=(pattern=1 color=green) name="wmic" legendlabel="Working memory Index" break; Hi, am doing a proc sg panel , I have missing values for col5-col7, is there a way i can tell sas not to perform task at the point where the columns are missing? so am getting a warning as shown below
I don't think there is such an option.
You could certainly write a macro that first tests to see if a variable is all missing, and then excludes it from the PROC SGPANEL code. But that seems like a lot of work just to avoid a WARNING in the log, in my opinion.
Example data and full sgpanel code would likely be the best place to start.
One would ask why you have included a variable with all missing values in the first place. If the reason comes down to "it worked for a previous data set" then the process likely needs to be addressed to account for changing data. Which would mean explaining what data comes up missing.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.