Running ‘testthat.R’ [13s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(BayesRGMM)
  > 
  > 
  > test_check("BayesRGMM")
  
  Data Descriptives:
  Longitudinal Data Information:
  Number of Observations:  815 	Number of Covariates:  3
  Number of subjects: 100 
  
  Start running MCMC procedure:
  
  Finish MCMC Procedure.
  
  Coefficients:
     PostMean StErr 2.5% 97.5%
  x1     -0.2  0.09 -0.8  0.78
  x2     -0.5  0.06 -1.0 -0.04
  x3      1.0  0.03  0.7  1.20
  x4     -1.1  0.03 -1.3 -0.80
  
  AMRA parameters:
  
        PostMean StErr  2.5% 97.5%
  phi 1   -0.007 0.007 -0.08  0.06
  psi 1    0.094 0.011 -0.01  0.25
  
  Random effect: 
              Variance
  (Intercept)      0.4
  
  Model Information:
   logL AIC BIC   CIC DIC MPL RJR ACC
   -198 608 884 0.001 532   6   1 0.9
  
    1   2   3 
  148 175 192 
          0%  33.33333%  66.66667%       100% 
  -9.7060423 -1.2010528  0.1110465  6.5569038 
  Start reading Data
  End reading Data
  Read Hyperparameters.
  Start running MCMC procedure:
  Start running MCMC procedure:
  
  Finish MCMC Procedure.
  
  Data Descriptives:
  Longitudinal Data Information:
  Number of Observations:  354 	Number of Covariates:  3
  Number of subjects: 100 
  
  
  Coefficients:
     PostMean StErr 2.5% 97.5%
  x1     -0.2  0.04 -0.5   0.2
  x2     -0.6  0.06 -1.1  -0.1
  x3      0.7  0.04  0.4   0.9
  x4     -0.4  0.02 -0.6  -0.2
  
  Parameters in HSD model:
           PostMean StErr 2.5% 97.5%
  IndTime1     -0.2  0.04 -0.5  0.02
  IndTime2     -0.1  0.06 -0.5  0.22
  
  Random effect: 
              Variance
  (Intercept)      0.4
  
  Model Information:
   logL AIC BIC CIC DIC MPL RJR ACC
   -126 463 739 0.6 353   5   1 0.9
  
  Estimate of Ri: 
       [,1] [,2] [,3] [,4] [,5]
  [1,] 1.0  0.2  0.1  0.0  0.0 
  [2,] 0.2  1.0  0.2  0.1  0.0 
  [3,] 0.1  0.2  1.0  0.2  0.1 
  [4,] 0.0  0.1  0.2  1.0  0.2 
  [5,] 0.0  0.0  0.1  0.2  1.0 
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 0 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_BayesRGMM_CPREM.R:54:1): A simulation study of CumulativeProbit ──
  <std::runtime_error/C++Error/error/condition>
  Error in `CumulativeProbitMCMC(num.of.iter, Data, Robustness, InitialValues, 
      HyperPara, UpdatePara, TuningPara, Interactive)`: inv(): matrix is singular
  Backtrace:
      ▆
   1. └─BayesRGMM::BayesCumulativeProbitHSD(...) at test_BayesRGMM_CPREM.R:54:0
   2.   └─BayesRGMM:::CumulativeProbitMCMC(...)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 0 ]
  Error: Test failures
  Execution halted