BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Andre
Obsidian | Level 7

Hi again,

With this code

title1 "SGPanel  reg ";

proc SGpanel  data=sashelp.class ;

panelby sex;

reg x=height y=weight/cli clm ;

run;

we obtain two panes with the htmlbue style colors  (under 9.3.2)

Despite the Example: Create a Panel That Uses an Attribute Map :: SAS(R) 9.3 ODS Graphics: Procedures Guide, Thi...

i did not find how to obtain a cycle for the male and female in matter of color of confidence

Is there a element of style + "overlay?" option that forces the switch of color from pane to pane ?

TIA

Andre

1 ACCEPTED SOLUTION

Accepted Solutions
AncaTilea
Pyrite | Level 9

Hi Andre,

In the example (from SAS) you see that there is an extra data step, where an 'attribute' map is created:

See below:

data attrmap;

retain ID "myid";

retain markersymbol "circlefilled";

input value $ markercolor $ linecolor $ linepattern $;

datalines;

F  orange  orange  solid

M  blue    blue    solid

;

run;

title1 "SGPanel  reg ";

proc SGpanel  data=sashelp.class dattrmap=attrmap;

panelby sex;

reg x=height y=weight/group = sex cli clm attrid=myid;

run;

Good luck!

Anca.

View solution in original post

2 REPLIES 2
AncaTilea
Pyrite | Level 9

Hi Andre,

In the example (from SAS) you see that there is an extra data step, where an 'attribute' map is created:

See below:

data attrmap;

retain ID "myid";

retain markersymbol "circlefilled";

input value $ markercolor $ linecolor $ linepattern $;

datalines;

F  orange  orange  solid

M  blue    blue    solid

;

run;

title1 "SGPanel  reg ";

proc SGpanel  data=sashelp.class dattrmap=attrmap;

panelby sex;

reg x=height y=weight/group = sex cli clm attrid=myid;

run;

Good luck!

Anca.

Andre
Obsidian | Level 7

Ok Ancea

I was missing the presence of group=sex in my reg instruction

that was the problem

Andre

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 888 views
  • 0 likes
  • 2 in conversation