subset_dim: subset_dim

Description Usage Arguments Details Author(s) Examples

Description

Gives the dimensions of each subset of the data; allows the analyst to know the distribution of the tests after being divided along one or two cateogorical factors, as well as the possible control pool for each subset. A low ratio between tests and controls might indicate that R was forced to make selections for certain controls that might not be a good fit.

Usage

1
subset_dim(raw_tests, raw_controls, num_cat_factors = 1)

Arguments

raw_tests

The imported test data

raw_controls

The imported control data

num_cat_factors

The number of categorical factors we are subsetting on

Details

The number of categorical factors defaults to 1. categorical factors are in the leftmost columns of each data set.

Author(s)

Nicholas Sun <nicholas.sun@rutgers.edu>

Examples

1
2
3
raw_tests <- read.csv("raw_tests_2_categories.csv")
raw_controls <- read.csv("raw_controls_2_categories.csv")
subset_dim(raw_tests, raw_controls, 2)

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