Learn R Programming

optrefine

The goal of optrefine is to split existing strata (or none) into more refined strata that optimize covariate balance. Most often, propensity score strata are each split into two in order to achieve better covariate balance.

Installation

You can install the release version of optrefine from CRAN with:

install.packages("optrefine")

You can install the development version of optrefine from GitHub with:

# install.packages("devtools")
devtools::install_github("kkbrum/optrefine")

Copy Link

Version

Install

install.packages('optrefine')

Monthly Downloads

172

Version

1.1.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Katherine Brumberg

Last Published

February 3rd, 2026

Functions in optrefine (1.1.1)

best_split

Find the best split for a stratum
print.strat

Print stratification object
prop_strat

Form propensity score strata
rhc_X

Right Heart Catheterization Data
split_stratum

Split one stratum into multiple strata
refine

Refine initial stratification
rand_pvals

Generate P-values using empirical randomization null distribution
plot.strat

Plot diagnostics for a "strat" object
new_strat

Constructor for object of class "strat"
calc_smds

Calculate standardized mean differences for initial and refined strata
strat

Helper for object of class "strat"
validate_strat

Validator for object of class "strat"
table_rand_pvals

Generate a covariate balance table from the empirical randomization null distribution