BookmarkSubscribeRSS Feed
lalaktgrau
Fluorite | Level 6

Hi everyone,

 

Is there a way to export the data set being used by a PROC GLM?

 

I want to see which observations are not being used in the regression. I know its probably due to missing data, but I don't actually have that much missing data in my data set.

 

SAS Output

Number of Observations ReadNumber of Observations Used
1064
458

 

 

1 REPLY 1
PGStats
Opal | Level 21

Request an output dataset with residuals.

 

OUTPUT OUT=MyRes R=resid;

 

Only obs used in the regression will have a non missing residual.

 

This is assuming you didn't use a WEIGHT statement in proc GLM.

PG

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1 reply
  • 1495 views
  • 2 likes
  • 2 in conversation