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!!
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
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
Thanks much! I figured it out. 3a and 3b should not run at the same time.
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!
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.