BookmarkSubscribeRSS Feed
SASuser11466
Calcite | Level 5

Hello everyone,

I have a question about Zero Inflated Models. We have a very standard survey data set. Our main interest is predicting volunteer hours and "amount of dollars contributed voluntarily."

Both response variables have greater variance than the mean and each has an accompanying variable that asks if the respondent was asked to either "give money" or "give time."

So, we have lots of zeroes (people could have said "no" when asked to volunteer or give money) and the distribution includes excessive zeroes. (e.g. zero hours volunteered and/or zero dollars contributed). We have standard predictor variables, some are ordinal (e.g. age, income, church attendance) others are categorical/class variables. Here are a few questions:

1. Any reccommendations for either inflated negative binomial or zero inflated Poisson models

2. Does anyone know how PROC countreg handles class variables? I am running SAS 9.2 and PROC countreg does not seem to handle the class statement.

3. Does anyone have a brief explanation of how to use the zeromodel command in countreg and what is typically an appropriate variable for the zeromodel portion of the model?

4. If anyone has any examples as code or responses to the above, we would be very grateful.

Thanks,

Gabriel

4 REPLIES 4
Dorota_Jarosz
Obsidian | Level 7

Binomial models assume only up to one event per person. Poisson handles trues rates, i.e., when 2 or more events per person are possible.

SASuser11466
Calcite | Level 5

Sorry for my delayed response Dorata_j. I've had a A very busy few days. Thanks for getting back to me so quickly.

PG Stats, Thanks to you as well!! After your note, I looked around and found something telling me I need 9.22 or 9.3 for PROC COUNTREG to take the CLASS statement. Thanks for that tip on upgrading. I have already passed along a request to our admin regards 9.3.

many Thanks all! Gabriel

plf515
Lapis Lazuli | Level 10

Hi Gabriel

You sometimes refer to Zero Inflated Binomial and sometimes Zero Inflated Negative Binomial. I think you mean the latter, and that led to Dorata_jarosz response (which is right for binomial, but not negative binomial). I don't see what a zero inflated binomial would be.

If you upgrade to 9.3, you have access to PROC FMM which fits ZINB and ZIP models very easily.

As to your statistical question: The Poisson model assumes the conditional variance is equal to the conditional mean. I have never found this assumption to be justified, although I suppose there must be cases where it is.

I am not sure what you mean by "COUNTREG does not seem to handle the CLASS statement". The statement is part of the PROC (see the documentation) and I have used it in the past without problems. Can you post your code and log?

PGStats
Opal | Level 21

There is (was) no CLASS statement in COUNTREG version SAS 9.2. - PG

PG

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
  • 4 replies
  • 1980 views
  • 0 likes
  • 4 in conversation