estimatr
Fast Estimators for Design-Based Inference
v1.0.6
·
Feb 28, 2025
·
MIT + file LICENSE
Description
Fast procedures for small set of commonly-used, design-appropriate estimators with robust standard errors and confidence intervals. Includes estimators for linear regression, instrumental variables regression, difference-in-means, Horvitz-Thompson estimation, and regression improving precision of experimental estimates by interacting treatment with centered pre-treatment covariates introduced by Lin (2013) <doi:10.1214/12-AOAS583>.
Downloads
13.2K
Last 30 days
1053rd
13.2K
Last 90 days
13.2K
Last year
CRAN Check Status
1
ERROR
2
NOTE
11
OK
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 | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (14 non-OK)
OK
r-devel-linux-x86_64-debian-clang
*
ERROR
r-devel-linux-x86_64-debian-gcc
tests
Running ‘sleep.R’ [1s/1s]
Comparing ‘sleep.Rout’ to ‘sleep.Rout.save’ ... OK
Running ‘testthat.R’ [22s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(estimatr)
>
> test_check("estimatr")
Saving _problems/test-modelsummary-16.R
[ FAIL 1 | WARN 0 | SKIP 5 | PASS 1282 ]
══ Skipped tests (5) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test-iv-robust.R:235:3', 'test-lm-cluster.R:183:3',
'test-lm-cluster.R:214:3'
• {ivpack} is not installed (2): 'test-iv-robust.R:30:3',
'test-iv-robust.R:328:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-modelsummary.R:16:3'): modelsummary works with glance ──────────
Error in `basename(x)`: a character vector argument expected
Backtrace:
▆
1. └─modelsummary::modelsummary(list(model1, model2, model3), output = "data.frame") at test-modelsummary.R:16:3
2. └─modelsummary:::factory(...)
3. └─modelsummary (local) factory_fun(...)
4. ├─base::isTRUE(tools::file_ext(output_file) == "csv")
5. └─tools::file_ext(output_file)
6. ├─base::ifelse(...)
7. ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
8. │ └─base::is.factor(x)
9. └─base::basename(x)
[ FAIL 1 | WARN 0 | SKIP 5 | PASS 1282 ]
Error:
! Test failures.
Execution halted
OK
r-devel-linux-x86_64-fedora-clang
*
OK
r-devel-linux-x86_64-fedora-gcc
*
OK
r-devel-macos-arm64
*
OK
r-devel-windows-x86_64
*
NOTE
r-oldrel-macos-arm64
installed package size
installed size is 39.9Mb
sub-directories of 1Mb or more:
libs 39.6Mb
NOTE
r-oldrel-macos-x86_64
installed package size
installed size is 40.7Mb
sub-directories of 1Mb or more:
libs 40.3Mb
OK
r-oldrel-windows-x86_64
*
OK
r-patched-linux-x86_64
*
OK
r-release-linux-x86_64
*
OK
r-release-macos-arm64
*
OK
r-release-macos-x86_64
*
OK
r-release-windows-x86_64
*
Check History
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 9, 2026
ERROR
r-devel-linux-x86_64-debian-gcc
tests
Running ‘sleep.R’ [1s/1s]
Comparing ‘sleep.Rout’ to ‘sleep.Rout.save’ ... OK
Running ‘testthat.R’ [22s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(estimatr)
>
> test_check("estimatr")
Saving _problems/test-modelsummary-16.R
[ FAIL 1 | WARN 0 | SKIP 5 | PASS 1282 ]
══ Skipped tests (5) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test-iv-robust.R:235:3', 'test-lm-cluster.R:183:3',
NOTE
r-oldrel-macos-arm64
installed package size
installed size is 39.9Mb
sub-directories of 1Mb or more:
libs 39.6Mb
NOTE
r-oldrel-macos-x86_64
installed package size
installed size is 40.7Mb
sub-directories of 1Mb or more:
libs 40.3Mb
Reverse Dependencies (31)
depends
imports
Dependency Network
Version History
new
1.0.6
Mar 9, 2026