12-16-2022
lsr0820
Calcite | Level 5
Member since
12-08-2022
- 4 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by lsr0820
Subject Views Posted 910 12-13-2022 01:45 PM 949 12-13-2022 12:01 PM 1263 12-09-2022 09:19 AM 1340 12-08-2022 12:07 PM -
Activity Feed for lsr0820
- Posted Re: Poisson Regression for Complex Surveys: Problem with Code on SAS Programming. 12-13-2022 01:45 PM
- Posted Poisson Regression for Complex Surveys: Problem with Code on SAS Programming. 12-13-2022 12:01 PM
- Posted Re: Poisson Regression for Complex Surveys: Applicable to Negative Binomial Models? on SAS Programming. 12-09-2022 09:19 AM
- Posted Poisson Regression for Complex Surveys: Applicable to Negative Binomial Models? on SAS Programming. 12-08-2022 12:07 PM
12-13-2022
01:45 PM
Running the sections in two separate SAS sessions solved the issue! Thanks very much for the help.
... View more
12-13-2022
12:01 PM
I am attempting to implement the following code: https://support.sas.com/rnd/app/stat/examples/SurveyPoisson/surveypoisson.htm I copied the code from the SAS program tab here: https://support.sas.com/rnd/app/stat/examples/SurveyPoisson/sas.html However, I am encountering errors at section 4 of the code, after running the two macros. (See attached log, with errors highlighted in yellow.) Note also the code sections highlighted in aqua; I added these PROC SORT statements to address errors with the 'by' statements encountered in subsequent syntax. I have attempted the solution noted in the following post (running the 3a and 3b macros separately): https://communities.sas.com/t5/Statistical-Procedures/Poisson-Regressions-for-Complex-Surveys/td-p/396602 I have attempted to run sections 3a and 3b, separately, in sequence; and also to run through section 3a, then comment out this section, and run again from section 1 through section 3b. However, I continue to encounter the error. Any assistance would be appreciated. Thank you.
... View more
12-09-2022
09:19 AM
Thanks very much for clarifying! This is helpful.
... View more
12-08-2022
12:07 PM
I am working with complex survey data with an over-dispersed count outcome, for which a negative-binomial model is appropriate. I found the following tutorial for conducting a Poisson regression with complex data: https://support.sas.com/rnd/app/stat/examples/SurveyPoisson/surveypoisson.htm The post contains the following 'caution' statement: "However, the log likelihood for the negative binomial model is [equation]. The weight, wi, cannot be factored out of the log likelihood, so you cannot use PROC GENMOD with a WEIGHT statement to obtain point estimates of the model parameters that account for the unequal weights. Whereas the weighted maximum likelihood point estimates that PROC GENMOD generates appropriately account for the unequal weights for distributions such as the Poisson, the weighted maximum likelihood variances and standard errors that PROC GENMOD computes do not account for the complex survey design. You must compute the variances and standard errors by using a different method. One such method is the delete-1 jackknife (resampling) method." I am unclear as to whether this 'caution' statement means that the approach given in this example can or cannot be applied to a negative-binomial model. In the example, the delete-1 jackknife method is applied. Would this then be appropriate for extension to a negative-binomial case? Or, does this method only adjust the variances and standard errors, meaning that the point estimates from a negative-binomial model would be incorrect? Also, if this example cannot be applied to a negative-binomial model, is there another available approach that can be implemented with complex-survey data? I am aware of the following macro -- any other options would also be appreciated. https://support.sas.com/resources/papers/proceedings17/0268-2017.pdf Thank you for your time and assistance.
... View more