Programming the statistical procedures from SAS

Calculation of R square and adjusted R square in PROC REG and PROC SURVEYREG

Reply
Contributor
Posts: 24

Calculation of R square and adjusted R square in PROC REG and PROC SURVEYREG

Is there any difference between R square and adjusted R suqare calculaiton between PROC REG and PROC SURVEYREG? We should get the same value from both procedures, correct?

 

Thanks,

 

Super User
Posts: 18,586

Re: Calculation of R square and adjusted R square in PROC REG and PROC SURVEYREG

I'm moving this to the Analytics> Statistical Procedures Forum, you should get an answer there.

 

Intuitively I want to say no, especially if you've use a WEIGHT or STRATA statement. Then the data that goes into each regression model would differ and the variance would, so therefore the R square values would not be the same. 

 

You should probably wait for an answer from someone more qualifed Smiley Happy

 

 

SAS Super FREQ
Posts: 3,548

Re: Calculation of R square and adjusted R square in PROC REG and PROC SURVEYREG

Show us the code. What options are you using?

 

As Reeza says, presumably you are using SURVEYREG because you have sampling weights, strata, domains, other features that you are trying to use to  provide corrections to the variance calculations.

Ask a Question
Discussion stats
  • 2 replies
  • 165 views
  • 1 like
  • 3 in conversation