search for: nbmodel

Displaying 2 results from an estimated 2 matches for "nbmodel".

Did you mean: abmodel
2007 Aug 22
1
"subscript out of bounds" Error in predict.naivebayes
...els and k1 - k3 have 2-6 levels. I have about 9,300 independent variables but omit the long list here for simple demonstration. There are no missing values in the observations. class k1 k2 k3 1 0 0 1 8 0 0 0 # model fitting, I also tried setting laplace=0 but didn't help nbmodel <- naiveBayes(class~., data=train, laplace=1) # predict nb.fit <- predict(nbmodel, x.test[,-1]) First I had no trouble fitting the model. R also returned the predictions for some of my large data sets. But for some data sets, R can fit the model (no error message, nb.model$tables look ok)....
2012 Jun 24
1
MuMIn for GLM Negative Binomial Model
Hello I am not able to use the MuMIn package (version 1.7.7) for multimodel inference with a GLM Negative Binomial model (It does work when I use GLM Poisson). The GLM Negative Binomial gives the following error statement: Error in get.models(NBModel, subset = delta < 4) : object has no 'calls' attribute Here is the unsuccessful Negative Binomial code. > > BirdNegBin <-glm(B~Covariate1 + Covariate2 + Covariate3 + Covariate4 + Covariate5 + Covariate6 >+ Covariate7, data = SquareSumLowland,family = negative.binomial(...