Running ‘testthat.R’ [18s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(OrthoPanels)
  > 
  > test_check("OrthoPanels")
  ── 1. Failure: default (@test-dropouts.R#56)  ──────────────────────────────────
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.695107
  Component "samples": Component "sig2": Mean relative difference: 0.1458314
  Component "samples": Component "beta": Mean relative difference: 0.7621992
  Component "fitted.values": Mean relative difference: 1.695882
  Component "residuals": Mean relative difference: 0.5099758
  Component "logLik": Mean relative difference: 0.7469496
  
  ── 2. Failure: late-arrivals (@test-dropouts.R#102)  ───────────────────────────
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.695107
  Component "samples": Component "sig2": Mean relative difference: 0.1458314
  Component "samples": Component "beta": Mean relative difference: 0.7621992
  Component "fitted.values": Mean relative difference: 1.695882
  Component "residuals": Mean relative difference: 0.5099758
  Component "logLik": Mean relative difference: 0.7469496
  
  ── 3. Failure: DIC (@test-dropouts.R#166)  ─────────────────────────────────────
  DIC(o) not equal to 15.158.
  1/1 mismatches
  [1] 32 - 15.2 == 16.9
  
  ── 4. Failure: default (@test-opm-multivar.R#54)  ──────────────────────────────
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.088331
  Component "samples": Component "sig2": Mean relative difference: 0.004545205
  Component "samples": Component "beta": Mean relative difference: 0.1813279
  Component "fitted.values": Mean relative difference: 0.09670938
  Component "residuals": Mean relative difference: 0.3411196
  Component "logLik": Mean relative difference: 91.31414
  
  ── 5. Failure: named matrix (@test-opm-multivar.R#100)  ────────────────────────
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.088331
  Component "samples": Component "sig2": Mean relative difference: 0.004545205
  Component "samples": Component "beta": Mean relative difference: 0.1813279
  Component "fitted.values": Mean relative difference: 0.09670938
  Component "residuals": Mean relative difference: 0.3411196
  Component "logLik": Mean relative difference: 91.31414
  
  ── 6. Failure: formula (@test-opm-multivar.R#201)  ─────────────────────────────
  opm(y ~ x1 + x2, d, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.088331
  Component "samples": Component "sig2": Mean relative difference: 0.004545205
  Component "samples": Component "beta": Mean relative difference: 0.1813279
  Component "fitted.values": Mean relative difference: 0.09670938
  Component "residuals": Mean relative difference: 0.3411196
  Component "logLik": Mean relative difference: 91.31414
  
  ── 7. Failure: formula (@test-opm-multivar.R#211)  ─────────────────────────────
  opm(y ~ x1 + x2, d, index = 4:3, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.088331
  Component "samples": Component "sig2": Mean relative difference: 0.004545205
  Component "samples": Component "beta": Mean relative difference: 0.1813279
  Component "fitted.values": Mean relative difference: 0.09670938
  Component "residuals": Mean relative difference: 0.3411196
  Component "logLik": Mean relative difference: 91.31414
  
  ── 8. Failure: formula (@test-opm-multivar.R#219)  ─────────────────────────────
  opm(y ~ x1 + x2, d, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.088331
  Component "samples": Component "sig2": Mean relative difference: 0.004545205
  Component "samples": Component "beta": Mean relative difference: 0.1813279
  Component "fitted.values": Mean relative difference: 0.09670938
  Component "residuals": Mean relative difference: 0.3411196
  Component "logLik": Mean relative difference: 91.31414
  
  ── 9. Failure: early dropouts (@test-opm-multivar.R#236)  ──────────────────────
  opm(xx, yy, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.088331
  Component "samples": Component "sig2": Mean relative difference: 0.004545205
  Component "samples": Component "beta": Mean relative difference: 0.1813279
  Component "fitted.values": Mean relative difference: 0.09670938
  Component "residuals": Mean relative difference: 0.3411196
  Component "logLik": Mean relative difference: 22.41573
  
  ── 10. Failure: confint (@test-opm-multivar.R#281)  ────────────────────────────
  confint(o) not equal to matrix(...).
  6/8 mismatches (average diff: 0.166)
  [1] -0.7965 - -0.160 == -0.6369
  [2]  0.0533 -  0.112 == -0.0584
  [3] -3.1467 - -2.962 == -0.1843
  [4] -1.5615 - -1.545 == -0.0167
  [5]  0.8554 -  0.929 == -0.0736
  [8]  5.4846 -  5.457 ==  0.0273
  
  ── 11. Failure: confint (@test-opm-multivar.R#290)  ────────────────────────────
  confint(o, 1:2, level = 0.68) not equal to matrix(...).
  4/4 mismatches (average diff: 0.168)
  [1] -0.317 - -0.0235 == -0.2930
  [2]  0.134 -  0.2157 == -0.0815
  [3]  0.773 -  0.7865 == -0.0134
  [4]  6.913 -  7.1965 == -0.2838
  
  ── 12. Failure: coef (@test-opm-multivar.R#299)  ───────────────────────────────
  coef(o) not equal to c(...).
  4/4 mismatches (average diff: 0.29)
  [1]  0.079 -  0.557 == -0.4780
  [2]  0.928 -  0.874 ==  0.0539
  [3] -1.174 - -0.713 == -0.4615
  [4] -0.823 - -0.656 == -0.1670
  
  ── 13. Failure: print (@test-opm-multivar.R#311)  ──────────────────────────────
  capture.output(o) not equal to c(...).
  5/12 mismatches
  x[7]: "                mean (SD)       med             95-CI"
  y[7]: "                 mean (SD)       med           95-CI"
  
  x[8]: "rho       0.155800 (0.59)   0.07900     (-0.80, 0.86)"
  y[8]: "rho        0.450900 (0.39)   0.55700   (-0.16, 0.93)"
  
  x[9]: "sig2     24.365036 (71.2)   0.92793  (0.053, 178.186)"
  y[9]: "sig2     24.422159 (71.18)   0.87405  (0.11, 178.19)"
  
  x[10]: "beta.x1  -0.420318 (2.71)  -1.17448       (-3.1, 5.1)"
  y[10]: "beta.x1   -0.077945 (2.55)  -0.71298     (-3.0, 5.1)"
  
  x[11]: "beta.x2  -0.052919 (2.54)  -0.82290       (-1.6, 5.5)"
  y[11]: "beta.x2    0.023554 (2.51)  -0.65587     (-1.5, 5.5)"
  
  ── 14. Failure: summary (@test-opm-multivar.R#328)  ────────────────────────────
  capture.output(summary(o)) not equal to c(...).
  5/9 mismatches
  x[5]: "            <--95CI    <--68CI        med     68CI-->    95CI-->"
  y[5]: "           <--95CI    <--68CI        med     68CI-->    95CI-->"
  
  x[6]: "rho       -0.796550   -0.31652    0.07900    0.773080     0.8554"
  y[6]: "rho       -0.15962   -0.02352    0.55700    0.786520     0.9290"
  
  x[7]: "sig2       0.053324    0.13416    0.92793    6.912686   178.1855"
  y[7]: "sig2       0.11171    0.21566    0.87405    7.196468   178.1855"
  
  x[8]: "beta.x1   -3.146684   -2.16230   -1.17448    0.889231     5.1099"
  y[8]: "beta.x1   -2.96240   -1.42573   -0.71298    0.703472     5.1099"
  
  x[9]: "beta.x2   -1.561531   -1.25130   -0.82290   -0.064929     5.4846"
  y[9]: "beta.x2   -1.54479   -1.18338   -0.65587   -0.032576     5.4573"
  
  ── 15. Failure: DIC (@test-opm-multivar.R#342)  ────────────────────────────────
  DIC(o) not equal to 24.83189.
  1/1 mismatches
  [1] 25.5 - 24.8 == 0.657
  
  ── 16. Failure: default (@test-opm.R#42)  ──────────────────────────────────────
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.770019
  
  ── 17. Failure: formula (@test-opm.R#141)  ─────────────────────────────────────
  opm(y ~ x, d, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.770019
  
  ── 18. Failure: formula (@test-opm.R#149)  ─────────────────────────────────────
  opm(y ~ x, d, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.770019
  
  ── 19. Failure: formula (@test-opm.R#161)  ─────────────────────────────────────
  opm(y ~ x, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.770019
  
  ── 20. Failure: formula (@test-opm.R#171)  ─────────────────────────────────────
  opm(y ~ x, d, index = 4:3, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.770019
  
  ── 21. Failure: formula (@test-opm.R#179)  ─────────────────────────────────────
  opm(y ~ x, d, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.770019
  
  ── 22. Failure: formula (@test-opm.R#189)  ─────────────────────────────────────
  opm(y ~ x, d, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.770019
  
  ── 23. Failure: dummy vals (@test-opm.R#197)  ──────────────────────────────────
  opm(x, y, n = 10, add = TRUE) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.653701
  Component "samples": Component "sig2": Mean relative difference: 0.03163735
  Component "samples": Component "beta": Mean relative difference: 0.1883573
  Component "fitted.values": Mean relative difference: 0.1176045
  Component "residuals": Mean relative difference: 0.9996076
  Component "logLik": Mean relative difference: 29.41377
  
  ── 24. Failure: formula dummy vals (@test-opm.R#259)  ──────────────────────────
  opm(y ~ x, d, n = 10, add = TRUE) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.653701
  Component "samples": Component "sig2": Mean relative difference: 0.03163735
  Component "samples": Component "beta": Mean relative difference: 0.1883573
  Component "fitted.values": Mean relative difference: 0.1176045
  Component "residuals": Mean relative difference: 0.9996076
  Component "logLik": Mean relative difference: 29.41377
  
  ── 25. Failure: early dropouts (@test-opm.R#345)  ──────────────────────────────
  opm(xx, yy, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.148669
  Component "samples": Component "sig2": Mean relative difference: 0.1808617
  Component "samples": Component "beta": Mean relative difference: 0.02201951
  Component "fitted.values": Mean relative difference: 0.1138285
  Component "residuals": Mean relative difference: 0.2140087
  Component "logLik": Mean relative difference: 2.321166
  
  ── 26. Failure: confint (@test-opm.R#388)  ─────────────────────────────────────
  confint(o) not equal to matrix(...).
  5/6 mismatches (average diff: 1.33)
  [1] -0.797 - -0.160 == -0.6369
  [2]  0.225 -  0.258 == -0.0328
  [3] -0.266 - -0.405 ==  0.1391
  [4]  0.855 -  0.945 == -0.0898
  [5] 20.804 - 26.574 == -5.7700
  
  ── 27. Failure: confint (@test-opm.R#395)  ─────────────────────────────────────
  confint(o, 1:2, level = 0.68) not equal to matrix(...).
  4/4 mismatches (average diff: 0.346)
  [1] -0.317 - -0.0235 == -0.2930
  [2]  0.372 -  0.3922 == -0.0203
  [3]  0.773 -  0.8348 == -0.0617
  [4] 12.153 - 13.1608 == -1.0075
  
  ── 28. Failure: coef (@test-opm.R#404)  ────────────────────────────────────────
  coef(o) not equal to c(rho = 0.651, sig2 = 0.898766398134737, beta = 1.08982465524029).
  2/3 mismatches (average diff: 0.288)
  [1] 0.079 - 0.651 == -0.57200
  [3] 1.085 - 1.090 == -0.00466
  
  ── 29. Failure: print (@test-opm.R#415)  ───────────────────────────────────────
  capture.output(o) not equal to c(...).
  4/11 mismatches
  x[7]: "          mean (SD)      med          95-CI"
  y[7]: "           mean (SD)      med          95-CI"
  
  x[8]: "rho   0.1558 (0.59)  0.07900  (-0.80, 0.86)"
  y[8]: "rho    0.4579 (0.44)  0.65100  (-0.16, 0.95)"
  
  x[9]: "sig2  4.8601 (8.19)  0.89877  (0.22, 20.80)"
  y[9]: "sig2  5.7391 (10.14)  0.89877  (0.26, 26.57)"
  
  x[10]: "beta  1.0696 (0.69)  1.08516  (-0.27, 1.98)"
  y[10]: "beta   1.0596 (0.74)  1.08982    (-0.4, 2.0)"
  
  ── 30. Failure: summary (@test-opm.R#431)  ─────────────────────────────────────
  capture.output(summary(o)) not equal to c(...).
  3/8 mismatches
  x[6]: "rho    -0.79655   -0.31652   0.07900    0.77308    0.8554"
  y[6]: "rho    -0.15962   -0.02352   0.65100    0.83476    0.9452"
  
  x[7]: "sig2    0.22479    0.37189   0.89877   12.15330   20.8043"
  y[7]: "sig2    0.25757    0.39221   0.89877   13.16080   26.5743"
  
  x[8]: "beta   -0.26568    0.80448   1.08516    1.54018    1.9824"
  y[8]: "beta   -0.40482    0.80448   1.08982    1.54018    1.9824"
  
  ── 31. Failure: DIC (@test-opm.R#444)  ─────────────────────────────────────────
  DIC(o) not equal to 16.80786.
  1/1 mismatches
  [1] 17.8 - 16.8 == 0.978
  
  ── 32. Failure: DIC (@test-opm.R#447)  ─────────────────────────────────────────
  DIC(opm(x, y, n = 10, add = TRUE)) not equal to -133.868546487072.
  1/1 mismatches
  [1] 8.26 - -134 == 142
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 37 SKIPPED: 0 FAILED: 32
  1. Failure: default (@test-dropouts.R#56) 
  2. Failure: late-arrivals (@test-dropouts.R#102) 
  3. Failure: DIC (@test-dropouts.R#166) 
  4. Failure: default (@test-opm-multivar.R#54) 
  5. Failure: named matrix (@test-opm-multivar.R#100) 
  6. Failure: formula (@test-opm-multivar.R#201) 
  7. Failure: formula (@test-opm-multivar.R#211) 
  8. Failure: formula (@test-opm-multivar.R#219) 
  9. Failure: early dropouts (@test-opm-multivar.R#236) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted