two_factor_search: two_factor_search

Description Usage Arguments Details Author(s) Examples

Description

Takes test group and control group (as 4 column data.frame) with exactly two categorical variables and one continuous variable for each obsevation. Performs 1-1 matching on both factors and a continuous value. Begins with first test, removing selected controls as it travels down. Then reperforms search going from the last test up to the first test. Forwards and backwards selections evaluated based on which has lower sum of absolute deviations from continuous values.

Usage

1
two_factor_search(raw_tests, raw_controls)

Arguments

raw_tests

The data.frame containing the tests

raw_controls

The data.frame containing the controls

Details

The tests are the first parameter, controls are second. Make sure that order in each data.frame input is FIRST FACTOR, SECOND FACTOR, OBSERVATIOIN ID, and CONTINUOUS VALUE.

Author(s)

Nicholas Sun <nicholas.sun@rutgers.edu>

Examples

1
2
3
raw_tests <- read.csv("raw_tests.csv")
raw_controls <- read.csv("raw_controls.csv")
two_factor_search(raw_tests, raw_controls)

njjms/matchr documentation built on May 7, 2019, 3:15 p.m.