REndo
Fitting Linear Models with Endogenous Regressors using Latent Instrumental Variables
Description
Fits linear models with endogenous regressor using latent instrumental variable approaches. The methods included in the package are Lewbel's (1997) <doi:10.2307/2171884> higher moments approach as well as Lewbel's (2012) <doi:10.1080/07350015.2012.643126> heteroscedasticity approach, Park and Gupta's (2012) <doi:10.1287/mksc.1120.0718> joint estimation method that uses Gaussian copula and Kim and Frees's (2007) <doi:10.1007/s11336-007-9008-1> multilevel generalized method of moment approach that deals with endogeneity in a multilevel setting. These are statistical techniques to address the endogeneity problem where no external instrumental variables are needed. See the publication related to this package in the Journal of Statistical Software for more details: <doi:10.18637/jss.v107.i03>. Note that with version 2.0.0 sweeping changes were introduced which greatly improve functionality and usability but break backwards compatibility.
Downloads
3.2K
Last 30 days
2168th
3.2K
Last 90 days
3.2K
Last year
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | ERROR |
| r-devel-linux-x86_64-fedora-clang | ERROR |
| r-devel-linux-x86_64-fedora-gcc | ERROR |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | ERROR |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | ERROR |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (14 non-OK)
*
tests
Running ‘testthat.R’ [100s/123s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
══ Skipped tests (30) ══════════════════════════════════════════════════════════
• On CRAN (30): 'test-correctness_copulacorrections.R:14:3',
'test-correctness_copulacorrections.R:90:3',
'test-correctness_copulacorrections.R:204:3',
'test-correctness_latentIV.R:10:3', 'test-correctness_multilevel.R:12:3',
'test-correctness_multilevel.R:62:3', 'test-correctness_multilevel.R:120:3',
'test-correctness_multilevel.R:151:3', 'test-correctness_multilevel.R:185:3',
'test-correctness_multilevel.R:213:3', 'test-correctness_multilevel.R:228:3',
'test-correctness_multilevel.R:293:3',
'test-runability_copulacorrection.R:12:3',
'test-runability_copulacorrection.R:30:3',
'test-runability_copulacorrection.R:90:3',
'test-runability_copulacorrection.R:184:3',
'test-runability_copulacorrection.R:204:3',
'test-runability_copulacorrection.R:219:3',
'test-runability_copulacorrection.R:303:3',
'test-runability_copulacorrection.R:316:3',
'test-runability_multilevel.R:22:3', 'test-runability_multilevel.R:61:3',
'test-runability_multilevel.R:75:3', 'test-runability_multilevel.R:93:3',
'test-runability_multilevel.R:103:3', 'test-runability_multilevel.R:112:3',
'test-runability_multilevel.R:124:3', 'test-runability_multilevel.R:136:3',
'test-runability_multilevel.R:157:3',
'test-s3methods_copualcorrection.R:46:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-correctness_multilevel.R:251:1'): (code run outside of `test_that()`) ──
Expected `... <- NULL` to run silently.
Actual noise: warnings.
── Failure ('test-inputchecks_multilevel.R:112:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "error in evaluating the argument 'x' in selecting a method for function 'forceSymmetric': non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = \"dgCMatrix\")"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:112:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─REndo::multilevelIV(...)
7. │ └─REndo:::multilevel_3levels(...)
8. │ ├─... + Matrix::bdiag(l.L2.V.part)
9. │ └─... + Matrix::bdiag(l.L2.V.part)
10. │ ├─Matrix::forceSymmetric(callGeneric(.M2gen(e1), .M2gen(e2)))
11. │ ├─methods::callGeneric(.M2gen(e1), .M2gen(e2))
12. │ │ └─base::eval(call, parent.frame())
13. │ │ └─base::eval(call, parent.frame())
14. │ ├─.M2gen(e1) + .M2gen(e2)
15. │ └─.M2gen(e1) + .M2gen(e2)
16. │ └─Matrix:::.Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
17. │ └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
18. │ └─base::stop(...)
19. └─base::.handleSimpleError(...)
20. └─base (local) h(simpleError(msg, call))
── Failure ('test-inputchecks_multilevel.R:113:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "non-conformable matrix dimensions in .diag2T.smart(e1, e2, kind = \"d\") + e2"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:113:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─REndo::multilevelIV(...)
7. └─REndo:::multilevel_3levels(...)
8. ├─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
9. └─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
10. ├─methods::callGeneric(.diag2T.smart(e1, e2, kind = "d"), e2)
11. │ └─base::eval(call, parent.frame())
12. │ └─base::eval(call, parent.frame())
13. ├─.diag2T.smart(e1, e2, kind = "d") + e2
14. └─.diag2T.smart(e1, e2, kind = "d") + e2
15. └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
Error:
! Test failures.
Execution halted
tests
Running ‘testthat.R’ [241s/300s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
══ Skipped tests (30) ══════════════════════════════════════════════════════════
• On CRAN (30): 'test-correctness_copulacorrections.R:14:3',
'test-correctness_copulacorrections.R:90:3',
'test-correctness_copulacorrections.R:204:3',
'test-correctness_latentIV.R:10:3', 'test-correctness_multilevel.R:12:3',
'test-correctness_multilevel.R:62:3', 'test-correctness_multilevel.R:120:3',
'test-correctness_multilevel.R:151:3', 'test-correctness_multilevel.R:185:3',
'test-correctness_multilevel.R:213:3', 'test-correctness_multilevel.R:228:3',
'test-correctness_multilevel.R:293:3',
'test-runability_copulacorrection.R:12:3',
'test-runability_copulacorrection.R:30:3',
'test-runability_copulacorrection.R:90:3',
'test-runability_copulacorrection.R:184:3',
'test-runability_copulacorrection.R:204:3',
'test-runability_copulacorrection.R:219:3',
'test-runability_copulacorrection.R:303:3',
'test-runability_copulacorrection.R:316:3',
'test-runability_multilevel.R:22:3', 'test-runability_multilevel.R:61:3',
'test-runability_multilevel.R:75:3', 'test-runability_multilevel.R:93:3',
'test-runability_multilevel.R:103:3', 'test-runability_multilevel.R:112:3',
'test-runability_multilevel.R:124:3', 'test-runability_multilevel.R:136:3',
'test-runability_multilevel.R:157:3',
'test-s3methods_copualcorrection.R:46:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-correctness_multilevel.R:251:1'): (code run outside of `test_that()`) ──
Expected `... <- NULL` to run silently.
Actual noise: warnings.
── Failure ('test-inputchecks_multilevel.R:112:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "error in evaluating the argument 'x' in selecting a method for function 'forceSymmetric': non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = \"dgCMatrix\")"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:112:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─REndo::multilevelIV(...)
7. │ └─REndo:::multilevel_3levels(...)
8. │ ├─... + Matrix::bdiag(l.L2.V.part)
9. │ └─... + Matrix::bdiag(l.L2.V.part)
10. │ ├─Matrix::forceSymmetric(callGeneric(.M2gen(e1), .M2gen(e2)))
11. │ ├─methods::callGeneric(.M2gen(e1), .M2gen(e2))
12. │ │ └─base::eval(call, parent.frame())
13. │ │ └─base::eval(call, parent.frame())
14. │ ├─.M2gen(e1) + .M2gen(e2)
15. │ └─.M2gen(e1) + .M2gen(e2)
16. │ └─Matrix:::.Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
17. │ └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
18. │ └─base::stop(...)
19. └─base::.handleSimpleError(...)
20. └─base (local) h(simpleError(msg, call))
── Failure ('test-inputchecks_multilevel.R:113:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "non-conformable matrix dimensions in .diag2T.smart(e1, e2, kind = \"d\") + e2"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:113:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─REndo::multilevelIV(...)
7. └─REndo:::multilevel_3levels(...)
8. ├─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
9. └─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
10. ├─methods::callGeneric(.diag2T.smart(e1, e2, kind = "d"), e2)
11. │ └─base::eval(call, parent.frame())
12. │ └─base::eval(call, parent.frame())
13. ├─.diag2T.smart(e1, e2, kind = "d") + e2
14. └─.diag2T.smart(e1, e2, kind = "d") + e2
15. └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
Error:
! Test failures.
Execution halted
tests
Running ‘testthat.R’ [234s/299s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
══ Skipped tests (30) ══════════════════════════════════════════════════════════
• On CRAN (30): 'test-correctness_copulacorrections.R:14:3',
'test-correctness_copulacorrections.R:90:3',
'test-correctness_copulacorrections.R:204:3',
'test-correctness_latentIV.R:10:3', 'test-correctness_multilevel.R:12:3',
'test-correctness_multilevel.R:62:3', 'test-correctness_multilevel.R:120:3',
'test-correctness_multilevel.R:151:3', 'test-correctness_multilevel.R:185:3',
'test-correctness_multilevel.R:213:3', 'test-correctness_multilevel.R:228:3',
'test-correctness_multilevel.R:293:3',
'test-runability_copulacorrection.R:12:3',
'test-runability_copulacorrection.R:30:3',
'test-runability_copulacorrection.R:90:3',
'test-runability_copulacorrection.R:184:3',
'test-runability_copulacorrection.R:204:3',
'test-runability_copulacorrection.R:219:3',
'test-runability_copulacorrection.R:303:3',
'test-runability_copulacorrection.R:316:3',
'test-runability_multilevel.R:22:3', 'test-runability_multilevel.R:61:3',
'test-runability_multilevel.R:75:3', 'test-runability_multilevel.R:93:3',
'test-runability_multilevel.R:103:3', 'test-runability_multilevel.R:112:3',
'test-runability_multilevel.R:124:3', 'test-runability_multilevel.R:136:3',
'test-runability_multilevel.R:157:3',
'test-s3methods_copualcorrection.R:46:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-correctness_multilevel.R:251:1'): (code run outside of `test_that()`) ──
Expected `... <- NULL` to run silently.
Actual noise: warnings.
── Failure ('test-inputchecks_multilevel.R:112:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "error in evaluating the argument 'x' in selecting a method for function 'forceSymmetric': non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = \"dgCMatrix\")"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:112:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─REndo::multilevelIV(...)
7. │ └─REndo:::multilevel_3levels(...)
8. │ ├─... + Matrix::bdiag(l.L2.V.part)
9. │ └─... + Matrix::bdiag(l.L2.V.part)
10. │ ├─Matrix::forceSymmetric(callGeneric(.M2gen(e1), .M2gen(e2)))
11. │ ├─methods::callGeneric(.M2gen(e1), .M2gen(e2))
12. │ │ └─base::eval(call, parent.frame())
13. │ │ └─base::eval(call, parent.frame())
14. │ ├─.M2gen(e1) + .M2gen(e2)
15. │ └─.M2gen(e1) + .M2gen(e2)
16. │ └─Matrix:::.Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
17. │ └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
18. │ └─base::stop(...)
19. └─base::.handleSimpleError(...)
20. └─base (local) h(simpleError(msg, call))
── Failure ('test-inputchecks_multilevel.R:113:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "non-conformable matrix dimensions in .diag2T.smart(e1, e2, kind = \"d\") + e2"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:113:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─REndo::multilevelIV(...)
7. └─REndo:::multilevel_3levels(...)
8. ├─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
9. └─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
10. ├─methods::callGeneric(.diag2T.smart(e1, e2, kind = "d"), e2)
11. │ └─base::eval(call, parent.frame())
12. │ └─base::eval(call, parent.frame())
13. ├─.diag2T.smart(e1, e2, kind = "d") + e2
14. └─.diag2T.smart(e1, e2, kind = "d") + e2
15. └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
Error:
! Test failures.
Execution halted
*
*
*
*
tests
Running 'testthat.R' [222s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
══ Skipped tests (30) ══════════════════════════════════════════════════════════
• On CRAN (30): 'test-correctness_copulacorrections.R:14:3',
'test-correctness_copulacorrections.R:90:3',
'test-correctness_copulacorrections.R:204:3',
'test-correctness_latentIV.R:10:3', 'test-correctness_multilevel.R:12:3',
'test-correctness_multilevel.R:62:3', 'test-correctness_multilevel.R:120:3',
'test-correctness_multilevel.R:151:3', 'test-correctness_multilevel.R:185:3',
'test-correctness_multilevel.R:213:3', 'test-correctness_multilevel.R:228:3',
'test-correctness_multilevel.R:293:3',
'test-runability_copulacorrection.R:12:3',
'test-runability_copulacorrection.R:30:3',
'test-runability_copulacorrection.R:90:3',
'test-runability_copulacorrection.R:184:3',
'test-runability_copulacorrection.R:204:3',
'test-runability_copulacorrection.R:219:3',
'test-runability_copulacorrection.R:303:3',
'test-runability_copulacorrection.R:316:3',
'test-runability_multilevel.R:22:3', 'test-runability_multilevel.R:61:3',
'test-runability_multilevel.R:75:3', 'test-runability_multilevel.R:93:3',
'test-runability_multilevel.R:103:3', 'test-runability_multilevel.R:112:3',
'test-runability_multilevel.R:124:3', 'test-runability_multilevel.R:136:3',
'test-runability_multilevel.R:157:3',
'test-s3methods_copualcorrection.R:46:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-correctness_multilevel.R:251:1'): (code run outside of `test_that()`) ──
Expected `... <- NULL` to run silently.
Actual noise: warnings.
── Failure ('test-inputchecks_multilevel.R:112:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "error in evaluating the argument 'x' in selecting a method for function 'forceSymmetric': non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = \"dgCMatrix\")"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:112:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─REndo::multilevelIV(...)
7. │ └─REndo:::multilevel_3levels(...)
8. │ ├─... + Matrix::bdiag(l.L2.V.part)
9. │ └─... + Matrix::bdiag(l.L2.V.part)
10. │ ├─Matrix::forceSymmetric(callGeneric(.M2gen(e1), .M2gen(e2)))
11. │ ├─methods::callGeneric(.M2gen(e1), .M2gen(e2))
12. │ │ └─base::eval(call, parent.frame())
13. │ │ └─base::eval(call, parent.frame())
14. │ ├─.M2gen(e1) + .M2gen(e2)
15. │ └─.M2gen(e1) + .M2gen(e2)
16. │ └─Matrix:::.Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
17. │ └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
18. │ └─base::stop(...)
19. └─base::.handleSimpleError(...)
20. └─base (local) h(simpleError(msg, call))
── Failure ('test-inputchecks_multilevel.R:113:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "non-conformable matrix dimensions in .diag2T.smart(e1, e2, kind = \"d\") + e2"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:113:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─REndo::multilevelIV(...)
7. └─REndo:::multilevel_3levels(...)
8. ├─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
9. └─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
10. ├─methods::callGeneric(.diag2T.smart(e1, e2, kind = "d"), e2)
11. │ └─base::eval(call, parent.frame())
12. │ └─base::eval(call, parent.frame())
13. ├─.diag2T.smart(e1, e2, kind = "d") + e2
14. └─.diag2T.smart(e1, e2, kind = "d") + e2
15. └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
Error:
! Test failures.
Execution halted
*
tests
Running ‘testthat.R’ [147s/191s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
|
| | 0%
|
|=================================== | 50%
|
|======================================================================| 100%
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
══ Skipped tests (30) ══════════════════════════════════════════════════════════
• On CRAN (30): 'test-correctness_copulacorrections.R:14:3',
'test-correctness_copulacorrections.R:90:3',
'test-correctness_copulacorrections.R:204:3',
'test-correctness_latentIV.R:10:3', 'test-correctness_multilevel.R:12:3',
'test-correctness_multilevel.R:62:3', 'test-correctness_multilevel.R:120:3',
'test-correctness_multilevel.R:151:3', 'test-correctness_multilevel.R:185:3',
'test-correctness_multilevel.R:213:3', 'test-correctness_multilevel.R:228:3',
'test-correctness_multilevel.R:293:3',
'test-runability_copulacorrection.R:12:3',
'test-runability_copulacorrection.R:30:3',
'test-runability_copulacorrection.R:90:3',
'test-runability_copulacorrection.R:184:3',
'test-runability_copulacorrection.R:204:3',
'test-runability_copulacorrection.R:219:3',
'test-runability_copulacorrection.R:303:3',
'test-runability_copulacorrection.R:316:3',
'test-runability_multilevel.R:22:3', 'test-runability_multilevel.R:61:3',
'test-runability_multilevel.R:75:3', 'test-runability_multilevel.R:93:3',
'test-runability_multilevel.R:103:3', 'test-runability_multilevel.R:112:3',
'test-runability_multilevel.R:124:3', 'test-runability_multilevel.R:136:3',
'test-runability_multilevel.R:157:3',
'test-s3methods_copualcorrection.R:46:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-correctness_multilevel.R:251:1'): (code run outside of `test_that()`) ──
Expected `... <- NULL` to run silently.
Actual noise: warnings.
── Failure ('test-inputchecks_multilevel.R:112:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "error in evaluating the argument 'x' in selecting a method for function 'forceSymmetric': non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = \"dgCMatrix\")"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:112:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─REndo::multilevelIV(...)
7. │ └─REndo:::multilevel_3levels(...)
8. │ ├─... + Matrix::bdiag(l.L2.V.part)
9. │ └─... + Matrix::bdiag(l.L2.V.part)
10. │ ├─Matrix::forceSymmetric(callGeneric(.M2gen(e1), .M2gen(e2)))
11. │ ├─methods::callGeneric(.M2gen(e1), .M2gen(e2))
12. │ │ └─base::eval(call, parent.frame())
13. │ │ └─base::eval(call, parent.frame())
14. │ ├─.M2gen(e1) + .M2gen(e2)
15. │ └─.M2gen(e1) + .M2gen(e2)
16. │ └─Matrix:::.Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
17. │ └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
18. │ └─base::stop(...)
19. └─base::.handleSimpleError(...)
20. └─base (local) h(simpleError(msg, call))
── Failure ('test-inputchecks_multilevel.R:113:3'): Fail if no slope provided ──
`multilevelIV(...)` threw an error with unexpected message.
Expected match: "The above errors were encountered!"
Actual message: "non-conformable matrix dimensions in .diag2T.smart(e1, e2, kind = \"d\") + e2"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-inputchecks_multilevel.R:113:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─REndo::multilevelIV(...)
7. └─REndo:::multilevel_3levels(...)
8. ├─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
9. └─Matrix::Diagonal(sigma.sq, n = nrow(X)) + ...
10. ├─methods::callGeneric(.diag2T.smart(e1, e2, kind = "d"), e2)
11. │ └─base::eval(call, parent.frame())
12. │ └─base::eval(call, parent.frame())
13. ├─.diag2T.smart(e1, e2, kind = "d") + e2
14. └─.diag2T.smart(e1, e2, kind = "d") + e2
15. └─Matrix:::.Ops.checkDim(dim(e1), dim(e2))
[ FAIL 3 | WARN 0 | SKIP 30 | PASS 2152 ]
Error:
! Test failures.
Execution halted
*
*
*
Check History
ERROR 9 OK · 0 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 9, 2026
tests
Running ‘testthat.R’ [100s/123s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
|
tests
Running ‘testthat.R’ [241s/300s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
|
tests
Running ‘testthat.R’ [234s/299s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
|
tests
Running ‘testthat.R’ [147s/191s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
|
tests
Running 'testthat.R' [222s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(REndo)
> library(Formula)
>
> test_check("REndo")
Saving _problems/test-correctness_multilevel-253.R
Saving _problems/test-inputchecks_multilevel-112.R
Saving _problems/test-inputchecks_multilevel-113.R
|
|