Skip to contents

Time-Dependent Matching

Perform, visualize and inspect time-dependent matching

match_time()
Matching for Causal Inference with Time-Dependent Treatments
method_brsm
Balanced Risk Set Matching
method_psm
Time-Dependent Propensity Score Matching
method_pgm
Time-Dependent Prognostic Score Matching
method_dsm
Time-Dependent Double Score Matching
method_greedy
Time-Dependent Greedy Selection of Controls
summary(<match_time>)
View a balance summary of a match_time object
bal.tab(<match_time>)
Display Balance Statistics in a Table for match_time objects
plot(<match_time>)
Plot cumulative number of matched cases and controls
plot_flowchart()
Plot a flowchart of the sample size flow in a match_time object
plot_timeline()
Plot the time under observation for ids in a match_time object
get_match_data()
Construct a matched dataset from a match_time object

Adding Covariates

Adding variables or outcomes to matched data

add_outcome()
Add a Time-to-Event Outcome to a match_time object
add_next_time()
Add the next time of an event to a match_time object
add_previous_event()
Add an indicator whether an event was occuring at baseline to a match_time object
add_previous_event_count()
Add a count of the number of events occured before inclusion to a match_time object
add_from_start_stop()
Add information from start-stop data to a match_time object

Start-Stop Data

Creating and transforming start-stop data

merge_start_stop()
Merge two or more datasets in the start-stop format
simplify_start_stop()
Combines rows with the same values in start-stop data
subset_start_stop()
Subsetting start-stop format datasets
times_from_start_stop()
Extract "event" times from start-stop format datasets
long2start_stop()
Transform a long-format dataset into the start-stop format
start_stop2long()
Transform a start-stop dataset into the long-format
fill_gaps_start_stop()
Add missing intervals to incomplete start-stop data

Misc

fast_exact_matching()
Fast Exact Matching with a Binary Treatment
stratified_sample()
Fast Stratified Sampling from a data.table like object