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

I am trying to run Poisson regression using the National Nutrition and Health Examination Survey data. The SAS institute has released a document "Poisson Regressions for Complex Surveys" (https://support.sas.com/rnd/app/stat/examples/SurveyPoisson/surveypoisson.htm). However I am having some difficulties effectively applying this program.

 

I copied the program and used the sample data they provided on the webpage and it didn't work. The program starts after section 3a. For example:

 

data converged;
set converge(where=(Status=0 & full=0));
run;

 

The actual dataset "converge" has no "full" variable with value '0' thus the database "converged" contains no observation.

 

Please see attached log file. I have made efforts by sorting the merge database with the by variable (highlighted in blue). but it still didn't work.

 

The problem starts from page 19, then pages 21 to the end. I have highlighted all issues in yellow color .

 

I'd be most greatful for any advice!!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

I downloaded the exact program and ran it without errors. 

Did you copy the program from the SAS Program tab? 

 

https://support.sas.com/rnd/app/stat/examples/SurveyPoisson/sas.html

View solution in original post

2 REPLIES 2
Reeza
Super User

I downloaded the exact program and ran it without errors. 

Did you copy the program from the SAS Program tab? 

 

https://support.sas.com/rnd/app/stat/examples/SurveyPoisson/sas.html

Lilyinrain
Calcite | Level 5

Thanks much! I figured it out. 3a and 3b should not run at the same time.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 2779 views
  • 0 likes
  • 2 in conversation