BookmarkSubscribeRSS Feed
Babloo
Rhodochrosite | Level 12

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?

6 REPLIES 6
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

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.

Babloo
Rhodochrosite | Level 12

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;

lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

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.

Babloo
Rhodochrosite | Level 12

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

May I request you to offer some help?

lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

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

Babloo
Rhodochrosite | Level 12

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?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1597 views
  • 3 likes
  • 2 in conversation