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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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