Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Programming
- /
- SAS Procedures
- /
- Proc SurveyReg Output

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 01-24-2019 01:59 PM
(2352 views)

I am having a problem, for some reason, I am no longer getting the estimated regression coefficients when I run the following code:

proc surveyreg data=RECODE6;

strata STRATUMCR4;

class anuinc urban MRAC MARRIED SEX EDUC2 Agec;

model Safety_Scale = anuinc urban MRAC MARRIED SEX EDUC2 Agec ACTIV DPRSN TV_HRS3/

anova adjrsq clparm deff inverse xpx;

weight WTANAL;

run;

I was able to run this and get the coefficients just fine, now for some reason I'm not.

It stops after reporting the Tests of Model Effects and the denominator degrees of freedom.

Help?

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

7 REPLIES 7

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

What does the log show? Please post the full log.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

No problem, here's the log:

916 proc surveyreg data=RECODE6;

917 strata STRATUMCR4;

918 class anuinc urban MRAC MARRIED SEX EDUC2 Agec;

919 model Safety_Scale = anuinc urban MRAC MARRIED SEX EDUC2 Agec

919! ACTIV DPRSN TV_HRS3/

920 anova adjrsq clparm deff inverse xpx;

921 weight WTANAL;

922 *output out = library.test predicted = fitted residual=resids;

923 run;

NOTE: In data set RECODE6, total 2232 observations read, 782

observations with missing values or non-positive weights are

omitted.

NOTE: PROCEDURE SURVEYREG used (Total process time):

real time 0.13 seconds

cpu time 0.07 seconds

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Is the number of obs missing correct? And try restarting SAS, there's nothing wrong with your code, so its likely an issue with the output. Another option is to 'reset' the output.

ods listing close;

ods listing;

ods html close;

ods html;

ods listing close;

ods listing;

ods html close;

ods html;

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Well, good to know my code isn't wrong.

but for some reason it's still not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

1. Run an example from the documentation. Does that work?

2. Remove options from MODEL statement, does that run?

3. Does any proc generate output? eg. proc means?

2. Remove options from MODEL statement, does that run?

3. Does any proc generate output? eg. proc means?

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Running one of the demonstration works.

proc surveymeans works, as does proc surveyfreq

Trying proc surveyreg with a different response variable isn't yielding coefficients either.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Got it,

I had to add the SOLUTION option to the Model statement.

Are you ready for the spotlight? We're accepting content ideas for **SAS Innovate 2025** to be held May 6-9 in Orlando, FL. The call is **open **until September 25. Read more here about **why** you should contribute and **what is in it** for you!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.