rollmatch (version 1.0.0)

createComparison: Create a dataframe of comparisons between all treatment and control data As it's an internal helper function to aid in testing, it is not exported for use outside of the package.

Description

Create a dataframe of comparisons between all treatment and control data As it's an internal helper function to aid in testing, it is not exported for use outside of the package.

Usage

createComparison(lr_result, tm, entry, id)

Arguments

lr_result

The dataset given to runModel with the additional of the score values generated by the propensity score model

tm

The time period indicator

entry

Entry quarter for subject

id

ID variable in dataset

Value

Dataframe comparing all treatment and control data

Examples

Run this code
# NOT RUN {
load(url(paste0("https://github.com/RTIInternational/rollmatch/raw/master/",
                 "tests/testthat/lr_result.rda")))
tm <- "quarter"; entry <- "entry_q"; id <- "indiv_id"
comparison_pool <- createComparison(lr_result, tm, entry, id)
head(comparison_pool)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab