Thanks Pscl seems to be a sensible option.
I have the counts variable with the name "N". This variable can only take values bigger than zero! I have two explanatory variables with the names "type" and "diam" but when I run hpm <- hurdle(n ~ type+diam, data = an, dist = "poisson") I get the message "invalid dependent variable, minimum count is not zero". Well, I know that N>0, that is why want to run a zero-truncated model. But I must be missing something...and the manual does not seem to help a lot... Can anyone help please? Dr. Iasonas Lamprianou Department of Social and Political Sciences University of Cyprus >________________________________ >From: Mitchell Maltenfort <mmal...@gmail.com> >To: Iasonas Lamprianou <lampria...@yahoo.com>; "r-help@r-project.org" ><r-help@r-project.org> >Sent: Sunday, 31 July 2011, 20:45 >Subject: Re: [R] zero truncated poisson regression > >Pscl package. > >On 7/31/11, Iasonas Lamprianou <lampria...@yahoo.com> wrote: >> Dear friends, >> >> does anyone know how I can run a zero truncated poisson regression using R >> (or even SPSS)? >> >> Dr. Iasonas Lamprianou >> Department of Social and Political Sciences >> University of Cyprus >> >> [[alternative HTML version deleted]] >> >> > >-- >Sent from my mobile device > >Due to the recession, requests for instant gratification will be >deferred until arrears in scheduled gratification have been satisfied. > > > [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.