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

Dear experts,

I'm studying with the SAS Certification Prep Guide, and get stuck at the Studentized Residual part.

The formula of the studentized residual includes "standard error of residual" as the denominator, and I thought the standard error of residual from the same sample will be the same.

 

However, the output(from a simple regression model) shows that the standard error of residual(stderr_residual) varies, and seems that records with same predictor value share the same standard error of residual.

Could someone explain why the standard error of residual varies, and how to calculate it to generate output as shown below? Thank you!

 

【Code】

libname sasba 'c:\sasba\data';

data Revenue;
set sasba.revenue;
run;

proc reg data=Revenue;
model y = x;
output out=diagnostics predicted=yhat residual=residual
stdr=stderr_residual student=student ;
run;

data res;
set diagnostics;
run;

proc print data=res;
var adexpense revenue yhat residual stderr_residual student;
run;

【Output】

JenjenL_0-1614397987665.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
PGStats
Opal | Level 21

Look for the role of leverage values in the definition of the standard error of the residual:

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.3&docsetId=statug&docsetTarget=statu... 

PG
JenjenL
Calcite | Level 5

@PGStats  Thank you for the solution! 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2 replies
  • 653 views
  • 1 like
  • 2 in conversation