Running examples in ‘jomo-Ex.R’ failed
The error most likely occurred in:

> ### Name: jomo.glmer
> ### Title: Joint Modelling Imputation Compatible with Generalized Linear
> ###   Mixed Model
> ### Aliases: jomo.glmer
> 
> ### ** Examples
> 
>   #First of all we load and atach the data:
>   
>   data(cldata)
>   attach(cldata)
>   
>   #Then we make sure sex is a factor:
>   
>   sex<-factor(sex)
>   
>   # we define the data frame with all the variables 
>   
>   data<-data.frame(measure,age, sex, city)
>   
>   # And the formula of the substantive lm model 
>   # sex as an outcome only because it is the only binary variable in the dataset...
>   
>   formula<-as.formula(sex~age+measure+(1|city))
>   
>   #And finally we run the imputation function:
>   
>   imp<-jomo.glmer(formula,data, nburn=2, nbetween=2, nimp=2)
This function is beta software. Please use carefully and report any bug to the package mantainer
First imputation registered. 
Imputation number  2 registered 
The posterior mean of the substantive model fixed effects estimates is:
         [,1]       [,2] [,3]
[1,] 1.896167 0.06608036    0
The posterior mean of the substantive model residual variance is:
[1] 1
The posterior mean of the substantive model random effects covariance matrix is:
          [,1]
[1,] 0.1073598
The posterior mean of the substantive model random effects estimates is:
              [,1]
 [1,]  0.022454930
 [2,] -0.094030280
 [3,]  0.083326748
 [4,] -0.014229814
 [5,] -0.105668310
 [6,] -0.008167661
 [7,] -0.007548024
 [8,] -0.008613791
 [9,]  0.116373371
[10,] -0.035291876
The posterior mean of the fixed effects estimates is:
            [,1]      [,2]
[1,] -0.01608234 0.8660528
The posterior mean of the random effects estimates is:
              [,1]       [,2]
 [1,]  0.031044904  0.2200112
 [2,]  0.003053569  0.3864743
 [3,]  0.293835423 -0.4346891
 [4,]  0.284475644  0.6989025
 [5,]  0.082880025 -0.5104063
 [6,]  0.133125610 -0.0401436
 [7,]  0.353323184 -0.0912868
 [8,]  0.475597234 -0.2655008
 [9,] -0.145472253 -0.3577525
[10,]  0.356590639 -0.3378754
The posterior mean of the level 1 covariance matrix is:
           [,1]       [,2]
[1,]  3.6363347 -0.1419546
[2,] -0.1419546  0.8844714
The posterior mean of the level 2 covariance matrix is:
            [,1]        [,2]
[1,]  0.13237589 -0.02895531
[2,] -0.02895531  0.23940536

 *** caught segfault ***
address 28834fa5, cause 'memory not mapped'

Traceback:
 1: unique.matrix(x, nmax = nmax)
 2: unique(x, nmax = nmax)
 3: factor(clus)
 4: jomo.glmer(formula, data, nburn = 2, nbetween = 2, nimp = 2)
An irrecoverable exception occurred. R is aborting now ...