stratamatch
Stratification and Matching for Large Observational Data Sets
Description
A pilot matching design to automatically stratify and match large datasets. The manual_stratify() function allows users to manually stratify a dataset based on categorical variables of interest, while the auto_stratify() function does automatically by allocating a held-aside (pilot) data set, fitting a prognostic score (see Hansen (2008) <doi:10.1093/biomet/asn004>) on the pilot set, and stratifying the data set based on prognostic score quantiles. The strata_match() function then does optimal matching of the data set in parallel within strata.
Downloads
564
Last 30 days
6176th
1.5K
Last 90 days
5.9K
Last year
Trend: +20.5% (30d vs prior 30d)
9
Last 30 days
25
Last 90 days
102
Last year
Trend: -43.8% (30d vs prior 30d)
3
Last 7 days
18
Last 30 days
2
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | NOTE |
| r-devel-linux-x86_64-debian-gcc | NOTE |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | 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 | OK |
Check details (2 non-OK)
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
Check History
NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 27, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
ERROR 10 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 24, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
tests
Running 'testthat.R' [14s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(stratamatch)
>
> test_check("stratamatch")
Saving _problems/test-auto_stratify-465.R
Saving _problems/test-auto_str
...[truncated]...
amatch (local) expect_strata_table_ok(...) at test-auto_stratify.R:478:3
2. └─testthat::expect_equal(dim(x), c(n_strat, 3)) at test-auto_stratify.R:36:3
[ FAIL 3 | WARN 11 | SKIP 0 | PASS 281 ]
Error:
! Test failures.
Execution halted
NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 13, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
ERROR 11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 12, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
ERROR 11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 21, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
ERROR 11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 20, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
NOTE 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 14, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
ERROR 10 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 12, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
tests
Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(stratamatch)
>
> test_check("stratamatch")
Saving _problems/test-auto_stratify-478.R
[ FAIL 1 | WARN 4 | SKIP 0 | P
...[truncated]...
tamatch (local) expect_strata_table_ok(...) at test-auto_stratify.R:478:3
2. └─testthat::expect_equal(dim(x), c(n_strat, 3)) at test-auto_stratify.R:36:3
[ FAIL 1 | WARN 4 | SKIP 0 | PASS 283 ]
Error:
! Test failures.
Execution halted
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 14, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
ERROR 12 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 13, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.
CRAN incoming feasibility
Maintainer: ‘Rachael C. Aikens <rockyaikens@gmail.com>’ Package CITATION file contains call(s) to old-style personList() or as.personList(). Please use c() on person objects instead. Package CITATION file contains call(s) to old-style citEntry(). Please use bibentry() instead.