BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
LLOUKINE
Fluorite | Level 6

Hello,

 In my analysis I use proc surveyred  with varmethod=brr  method for the variance estimation and as soon as I declare the categorical variables as  class variables I receive the note in the SAS output that states  ”Matrix X'WX is singular and a generalized inverse was used to solve the normal equations.  Estimates are not unique.” My categorical variables are numeric type and when I use them in the model w/o the class statement that note disappears. I noticed that in one example for this procedure the output has the same note but the estimates are still used and interpreted. PROC SURVEYREG: Variance Estimate Using the Jackknife Method :: SAS/STAT(R) 9.22 User's Guide

In this regards I have 2 questions:

  1. Why I am getting that note when I declare the categorical variables using the class statement?
  2. Can this note be ignored and the model parameters can be used to make conclusions for the analyses?

 

Please advise. Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions
YZ11
SAS Employee

When your model contains a CLASS statement, then you will get this message any time you run PROC SURVEYREG with the SOLUTION option in the MODEL statement. SURVEYREG is estimating the model correctly, and the message is telling you exactly what technique is being used for the estimation. 
See the following Usage Note for details:
Usage Note 22585: Why is the X'X matrix found to be singular in the PROC GLM Output?
http://support.sas.com/kb/22/585.html
The Usage Note discusses PROC GLM, but the same model parameterization is used in PROC SURVEYREG.

I hope this information is helpful.

View solution in original post

3 REPLIES 3
YZ11
SAS Employee

When your model contains a CLASS statement, then you will get this message any time you run PROC SURVEYREG with the SOLUTION option in the MODEL statement. SURVEYREG is estimating the model correctly, and the message is telling you exactly what technique is being used for the estimation. 
See the following Usage Note for details:
Usage Note 22585: Why is the X'X matrix found to be singular in the PROC GLM Output?
http://support.sas.com/kb/22/585.html
The Usage Note discusses PROC GLM, but the same model parameterization is used in PROC SURVEYREG.

I hope this information is helpful.

LLOUKINE
Fluorite | Level 6

Thank you very much for your reply! I appreciate it! 

LLOUKINE
Fluorite | Level 6

Hi, I looked at the link you provided and it states "The estimates are regarded as biased or not uniquely estimable."  It is sounds as contradictory to your statement that the 'SURVEYREG is estimating the model correctly" . Am I missing something? Can I use a different type of a parametrization in proc surveyreg to avoid Linear dependencies? 

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore 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
  • 3 replies
  • 178 views
  • 0 likes
  • 2 in conversation