Running examples in 'generalhoslem-Ex.R' failed
The error most likely occurred in:

> ### Name: logitgof
> ### Title: Hosmer-Lemeshow Tests for Logistic Regression Models
> ### Aliases: logitgof
> ### Keywords: regression
> 
> ### ** Examples
> 
> ### The mtcars dataset is a terrible example to use due to its small
> ### size - some of the models will return warnings as a result.
> ## Binary model
> # 1/0 coding
> data(mtcars)
> mod1 <- glm(vs ~ cyl + mpg, data = mtcars, family = binomial)
> logitgof(mtcars$vs, fitted(mod1))
Warning in logitgof(mtcars$vs, fitted(mod1)) :
  At least one cell in the expected frequencies table is < 1. Chi-square approximation may be incorrect.

	Hosmer and Lemeshow test (binary model)

data:  mtcars$vs, fitted(mod1)
X-squared = 8.8633, df = 8, p-value = 0.354

> 
> # factor name coding
> mtcars$engine <- factor(ifelse(mtcars$vs==0, "V", "S"), levels = c("V", "S"))
> mod2 <- glm(engine ~ cyl + mpg, data = mtcars, family = binomial)
> logitgof(mtcars$engine, fitted(mod2))
Warning in logitgof(mtcars$engine, fitted(mod2)) :
  At least one cell in the expected frequencies table is < 1. Chi-square approximation may be incorrect.

	Hosmer and Lemeshow test (binary model)

data:  mtcars$engine, fitted(mod2)
X-squared = 8.8633, df = 8, p-value = 0.354

> 
> ## Multinomial model
> # with nnet
> library(nnet)
> mod3 <- multinom(gear ~ mpg + cyl, data = mtcars)
# weights:  12 (6 variable)
initial  value 35.155593 
iter  10 value 21.978836
iter  20 value 21.773447
iter  30 value 21.761921
final  value 21.761297 
converged
> logitgof(mtcars$gear, fitted(mod3))
Warning in logitgof(mtcars$gear, fitted(mod3)) :
  At least one cell in the expected frequencies table is < 1. Chi-square approximation may be incorrect.

	Hosmer and Lemeshow test (multinomial model)

data:  mtcars$gear, fitted(mod3)
X-squared = 13.501, df = 16, p-value = 0.6358

> 
> # with mlogit
> library(mlogit)
Loading required package: dfidx
Error: package or namespace load failed for 'dfidx' in library.dynam(lib, package, package.lib):
 DLL 'dplyr' not found: maybe not installed for this architecture?
Error: package 'dfidx' could not be loaded
Execution halted