turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Proc sgpanel - linearity

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-03-2015 08:58 AM

I was using the below two procs to find out the linearity between dependent varaibles when my model statement for MANCOVA analysis is '*model bal_mix bal=age gender*'; Regardless of gender (categorical) all the other variable is numerical variable.

proc sgpanel data=scatter_data

noautolegend;

panelby gender / uniscale=row;

reg x=age y=**bal_mix** / lineattrs=(color=red thickness=2);

run;

proc sgpanel data=scatter_data

noautolegend;

panelby gender / uniscale=row;

reg x=age y=**bal**/ lineattrs=(color=red thickness=2);

run;

I wanted to make sure that these procs are correct to check the linearity. On a related note, what are the other procs to check the linearity to the dependent variable?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Babloo

04-03-2015 10:00 AM

The graphics procedures are not the best way to check for linearity. Use PROC REG.

proc reg;

by gender;

model bal = age;

run;

You get lots of diagnostic plots.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-03-2015 10:12 AM

What about the other variable **bal_mix?**

Do I need to repeat a proc reg by modifying the variable name like below?

proc reg;

by gender;

model bal_mix = age;

run;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Babloo

04-03-2015 10:27 AM

Of course. By the way, I highly recommend that you do some reading about regression analysis, and so on, using SAS. There is a great deal of on-line documentation; this forum can't teach you everything from scratch. I suggest you start with Introduction Regression Procedures chapter in the User's Guide.

http://support.sas.com/documentation/onlinedoc/stat/930/introreg.pdf

If you can get the book, I highly recommend that you read "SAS for Linear Models" (2002) by Littell et al. This came out before the SG graphics, but the material is thorough and clear. Book nicely moves into multivariate methods and also covariance analysis.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-06-2015 10:25 AM

There was not much information about 'Panel of Regression' plot. Figure 4.4 in the document.

May I request you to offer some help?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Babloo

04-06-2015 11:49 AM

These types of graphs are explained in modern regression textbook. Also in the REG chapter of the Stat User's Guide.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-07-2015 09:48 AM

I've looked at SAS/STAT(R) 9.2 User's Guide, Second Edition but we don't have better explanation whereas modern regression textbook is not available for free.

May I request you to tell me (if possible) in a word or two to confirm the linearity by looking at the 'Panel of Regression' plot?