Not sure what's going on. Do you have data rows with only zeros? Maybe wise to filter those out.
Sure, yuo may send me a small part of the data which gives an error.
Hi,
I am trying to fit a zero-inflated negative binomial model to large (N=2350), very sparse (13% non-zero) data but get the above error. The data is also high-dimensional, but I figured I would try to get the model to fit on a subset before burning too many CPU cycles.
The analogous ZINB model fits without error in the CAGEdata1000 set. I don't see a way to attach a file here, but I can email you the data I am trying to fit.
[1] "iter= 1"
[1] "ntagsused= 50"
[1] "NOTE: Warnings from INLA (eigenvalues, convergence, abort) can currently not be surpressed. Please ignore (generally)"
[1] "ntags not used: 0"
[1] "ntags not used: 0"
[1] -2479.196
[1] Inf
mufixed precfixed muaddfixed precaddfixed shaperand
0.0000000 Inf 0.0000000 0.1000000 1.0000000
raterand shapeaddr rateaddr mup0 precp0
0.0000100 1.0000000 0.0000100 0.0000000 0.0100000
mudisp precdisp mixp1 mixp2 nfeat
-1.8420358 0.3169499 0.0000000 1.0000000 50.0000000
meanmlik
-2479.1956000
mufixed precfixed muaddfixed precaddfixed shaperand raterand
0.0000000 Inf 0.0000000 0.0000000 0.0000000 0.0000000
shapeaddr rateaddr mup0 precp0 mudisp precdisp
0.0000000 0.0000000 0.0000000 0.0000000 -1.8420358 0.3069499
mixp1 mixp2 nfeat meanmlik
-0.2000000 0.2000000 NA NA
KSfixed KSmaxaddfixed KSlogdisp KSlogitp0 KSrandomprec
KS 0.5 0.09974769 0.4104487 0 0
[1] "iter= 2"
[1] "ntagsused= 50"
[1] "Point mass has zero mass...fitting full model only."
[1] "ntags not used: 0"
[1] "ntags not used: 0"
[1] -2479.196 -2479.124
[1] 2.904252e-05
mufixed precfixed muaddfixed precaddfixed shaperand
0.0000000 Inf 0.0000000 0.1000000 1.0000000
raterand shapeaddr rateaddr mup0 precp0
0.0000100 1.0000000 0.0000100 0.0000000 0.0100000
mudisp precdisp mixp1 mixp2 nfeat
-1.8420358 0.3169499 0.0000000 1.0000000 50.0000000
meanmlik
-2479.1956000
mufixed precfixed muaddfixed precaddfixed shaperand raterand
0 NaN 0 0 0 0
shapeaddr rateaddr mup0 precp0 mudisp precdisp
0 0 0 0 0 0
mixp1 mixp2 nfeat meanmlik
0 0 0 0
KSfixed KSmaxaddfixed KSlogdisp KSlogitp0 KSrandomprec
KS 0.5 0.09974769 0.4104487 0 0
[1] "Computing time for shrinkage:"
user system elapsed
1101.619 48.665 1197.569
[1] "STARTING INITIAL FIT"
[1] "IF YOU DO NOT INTEND TO USE EITHER OF THE FUNCTIONS MixtureUpdatePrior OR NonParaUpdatePrior \nPLEASE USE finalprior=TRUE"
[1] "NOTE: Warnings from INLA (eigenvalues, convergence, abort) can currently not be surpressed. Please ignore (generally)"
[1] "Approximating marginal likelihood for null model by Savage-Dickey"
Set 'approx0 <- FALSE' when this is not desired.
[1] "Computing time for initial fit:"
user system elapsed
497.153 24.257 544.086
[1] "START FITTING MIXTURE PRIOR"
Error in sum(whnull) : invalid 'type' (list) of argument
sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.4
Not sure what's going on. Do you have data rows with only zeros? Maybe wise to filter those out. Sure, yuo may send me a small part of the data which gives an error.
Hi, I am trying to fit a zero-inflated negative binomial model to large (N=2350), very sparse (13% non-zero) data but get the above error. The data is also high-dimensional, but I figured I would try to get the model to fit on a subset before burning too many CPU cycles.
The analogous ZINB model fits without error in the CAGEdata1000 set. I don't see a way to attach a file here, but I can email you the data I am trying to fit.