1
votes

I'm doing Zero-Inflated Model to my data. I'm using RStudio and pscl package. My models:

z_deniz <- zeroinfl(YANs ~ deniz, dist = "poisson", link = "logit", data=zipveri3)
zn3_nufus05 <- zeroinfl(YANs ~ nufus05, dist = "negbin", link = "logit", data=zipveri3)

I don't have problems with my other models but I get this error with these two models:

Error in solve.default(as.matrix(fit$hessian)) : system is computationally singular: reciprocal condition number = 9.93413e-121

Dependent variable is fire counts and independent variables are distance to coastline and population. I tried to log transform my dependent variable but it didn't work.

summary(regveri3$deniz)
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
     4.24  18010.00  48070.00  65760.00  97340.00 269200.00 

Any help is appreciated!

1
Please add some data to make this a MWE. stackoverflow.com/questions/5963269/… - dww
I think this is more of a math question than a programming question: see stats.stackexchange.com/questions/76488/… and stats.stackexchange.com/questions/71438/… (and more at CrossValidated). - r2evans

1 Answers

1
votes

Try specifying the regressors for the zero component. If you want to use none, then add "1"; otherwise replace "1" with the variables you want to use:

z_deniz <- zeroinfl(YANs ~ deniz | 1, dist = "poisson", link = "logit", data=zipveri3)

Source can be found here .