Data visualization with SAS programming

How to compare three sets of parameters from two separate groups using sgscatter compare!

Reply
Occasional Contributor
Posts: 6

How to compare three sets of parameters from two separate groups using sgscatter compare!

Hello there!

Please I have got two sets of data that look like this:

- mass height index class

- mass1 height1 index1 class1

where class or class1 is the group and contains 'small', 'medium' and 'large'.

Now, I would like to compare y=index; y=index1 and x=(mass height) x=(mass1 height1) in group=class and group=class1.

In all, I would like to have 4 graphs in one page (ie index compared with mass/height and index1 compared with mass1/height1, all in one page)

Thank you in advance for taking your time to help me.

Best regards,

Jaco

SAS Super FREQ
Posts: 8,645

Re: How to compare three sets of parameters from two separate groups using sgscatter compare!

Hi:

  I am having a hard time visualizing your data. Is there anyway you could restate your question using an example that everybody has available, like the SASHELP.IRIS data??? For example, the SPECIES variable in SASHELP.IRIS has 3 values (Setosa Versicolor Virginica), which are the exactly the same as your small, medium or large, but might serve somewhat the same purpose.

  Another alternative is for you to post some of your data, and a DATA step program to create the SAS dataset that you have. That would allow people to play around without guessing what your data looks like. Or you could make some fake data.

cynthia

SAS Super FREQ
Posts: 864

Re: How to compare three sets of parameters from two separate groups using sgscatter compare!

With the given information, is appears as if the best option is to render two panels (two SGSCATTER calls) on the same page. The ODS destinations can control whether multiple outputs are placed on the same page. What output type are you creating? e.g. PDF, RTF, html, etc.

Post a Question
Discussion Stats
  • 2 replies
  • 342 views
  • 0 likes
  • 3 in conversation