Running ‘test_glmertree.R’ [5s/17s]
Running the tests in ‘tests/test_glmertree.R’ failed.
Complete output:
  > library("glmertree")
  Loading required package: lme4
  Loading required package: Matrix
  Loading required package: partykit
  Loading required package: grid
  Loading required package: libcoin
  Loading required package: mvtnorm
  > options(width = 70, prompt = "R> ", continue = "+  ", digits = 4)
  R> 
  R> data("DepressionDemo", package = "glmertree")
  R> summary(DepressionDemo)
     depression          treatment     cluster        age    
   Min.   : 3.00   Treatment 1:78   1      :15   Min.   :18  
   1st Qu.: 7.00   Treatment 2:72   2      :15   1st Qu.:39  
   Median : 9.00                    3      :15   Median :45  
   Mean   : 9.12                    4      :15   Mean   :45  
   3rd Qu.:11.00                    5      :15   3rd Qu.:52  
   Max.   :16.00                    6      :15   Max.   :69  
                                    (Other):60               
      anxiety        duration     depression_bin
   Min.   : 3.0   Min.   : 1.00   0:78          
   1st Qu.: 8.0   1st Qu.: 5.00   1:72          
   Median :10.0   Median : 7.00                 
   Mean   :10.3   Mean   : 6.97                 
   3rd Qu.:12.0   3rd Qu.: 9.00                 
   Max.   :18.0   Max.   :17.00                 
                                                
  R> 
  R> lmm_tree <- lmertree(depression ~ treatment | cluster | age + duration + anxiety,
  +    data = DepressionDemo)
  Error in if (continue & (abs(newloglik - oldloglik[2]) < abstol)) { : 
    missing value where TRUE/FALSE needed
  Calls: lmertree
  In addition: Warning messages:
  1: In optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
    convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
  2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
    Model failed to converge with max|grad| = 2.14658 (tol = 0.002, component 1)
  Execution halted