Skip to contents

LAP Solving

Core functions for solving linear assignment problems

Matching Functions

High-level matching for observational studies

match_couples()
Optimal and Greedy Pair Matching
match_path() print(<couplr_path>) summary(<couplr_path>) as.data.frame(<couplr_path>) plot(<couplr_path>)
Solve a Sequence of Matchings over One Design Parameter
matchmaker() print(<matchmaker_result>) summary(<matchmaker_result>)
Create Blocks for Stratified Matching
ps_match()
Propensity Score Matching
cardinality_match()
Cardinality Matching
full_match()
Full Matching
cem_match()
Coarsened Exact Matching
subclass_match()
Subclassification on Propensity Score

Balance Diagnostics & Analysis

Assess match quality and sensitivity to hidden bias

Optimality Verification

Check a solution against the dual prices that certify it

Distance and Preprocessing

Distance computation and data preparation

Joined Datasets & Output

Create analysis-ready merged datasets

join_matched() augment(<couplr_result>)
Join Matched Pairs with the Original Data
match_data()
Extract Analysis-Ready Data from a Matching Result

Ecosystem Integration

Interoperability with MatchIt, cobalt, and marginaleffects

as_matchit()
Convert a Matching Result to a matchit Object
bal.tab(<couplr_result>) bal.tab(<subclass_result>)
Balance Tables from cobalt for Matching Results

Utility Functions

Helper functions for working with results

Example Data

Built-in datasets for examples and testing

hospital_staff
Hospital Staff Example Data
example_costs
Example Cost Matrices
example_df
Example Assignment Data Frame

Pixel Morphing

Visual demonstrations and image processing

pixel_morph()
Pixel-Level Image Morphing
pixel_morph_animate() print(<pixel_morph_animation>) summary(<pixel_morph_animation>)
Animated Pixel-Level Image Morphing

Algorithm Animation

Step-by-step visualization of LAP algorithms

lap_animate()
Animate an Assignment Algorithm
animated_methods()
List Methods That Support Animation

S3 methods for displaying and visualizing results

assignment() print(<lap_solve_result>) summary(<lap_solve_result>) is_lap_solve_result() get_total_cost() get_method_used()
Solve a Linear Assignment Problem
lap_solve_batch() print(<lap_solve_batch_result>) summary(<lap_solve_batch_result>) is_lap_solve_batch_result()
Solve Many Assignment Problems
lap_solve_kbest() print(<lap_solve_kbest_result>) summary(<lap_solve_kbest_result>) is_lap_solve_kbest_result()
Find the k Best Assignments
plot(<matching_result>) autoplot(<matching_result>) glance(<couplr_result>) tidy(<couplr_result>) as.data.frame(<couplr_result>) print(<couplr_result>) summary(<couplr_result>)
Matching Results
match_path() print(<couplr_path>) summary(<couplr_path>) as.data.frame(<couplr_path>) plot(<couplr_path>)
Solve a Sequence of Matchings over One Design Parameter
matchmaker() print(<matchmaker_result>) summary(<matchmaker_result>)
Create Blocks for Stratified Matching
balance_diagnostics() print(<balance_diagnostics>) summary(<balance_diagnostics>) plot(<balance_diagnostics>) autoplot(<balance_diagnostics>)
Balance Diagnostics for Matched Samples
compute_distances() is_distance_object() print(<distance_object>) summary(<distance_object>) as.matrix(<distance_object>)
Compute and Cache a Distance Matrix
preprocess_matching_vars() print(<variable_health>) summary(<variable_health>) print(<preprocessing_result>) summary(<preprocessing_result>)
Check Matching Variables and Choose Scaling
autoplot(<sensitivity_analysis>) sensitivity_analysis() print(<sensitivity_analysis>) summary(<sensitivity_analysis>) as.data.frame(<sensitivity_analysis>) plot(<sensitivity_analysis>)
Rosenbaum Sensitivity Analysis