boot_match_univariate: Match two groups on a single variable using bootstrapping

Description Usage Arguments Value

View source: R/bootmatch-package.R

Description

Match two groups on a single variable using bootstrapping

Usage

1
boot_match_univariate(data, y, x, caliper = 0, boot = 100, id = NULL)

Arguments

data

a dataframe

y

a column in data with two values or a logical expression that can be evaluated inside of data to determine groups.

x

a column in data

caliper

a caliper constraint to set on the matching. Only matches with abs(x[1] - x[2]) <= caliper are legal. A caliper of 0 would enforce exact matches.

boot

number of bootstrap samples to take. Defaults to 100.

id

an optional column in data with a unique ID for each row in data. Matches will be provided using these IDs instead of row numbers.

Value

the best bootstrapped match. The best match has the largest number of matched pairs and the smallest z-score difference on x between the two matched subgroups.


tjmahr/bootmatch documentation built on May 16, 2019, 9:13 p.m.