View source: R/utility_functions.R
add_matches_columns | R Documentation |
This function takes a dataframe containing match information and adds additional columns to indicate the match rank, total matches for a given treatment ID, treatment weight, control matches, and control weight.
add_matches_columns(matches)
matches |
Dataframe containing the matches from comparison_pool. Each row represents a match, and there should be columns for 'treat_id' and possibly 'control_id' if control matches are to be calculated. |
A dataframe containing the original match information along with additional columns: 'match_rank', 'total_matches', 'treatment_weight', 'control_matches', and 'control_weight'.
print('See add_balance_table for full example')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.