gammaNUMCKpar: gammaNUMCKpar

Description Usage Arguments Value Author(s) Examples

View source: R/gammaNUMCKpar.R

Description

Field comparisons for numeric variables. Three possible agreement patterns are considered: 0 total disagreement, 1 partial agreement, 2 agreement. The distance between numbers is calculated using their absolute distance.

Usage

1
gammaNUMCKpar(matAp, matBp, n.cores, cut.a, cut.p)

Arguments

matAp

vector storing the comparison field in data set 1

matBp

vector storing the comparison field in data set 2

n.cores

Number of cores to parallelize over. Default is NULL.

cut.a

Lower bound for full match. Default is 1

cut.p

Lower bound for partial match. Default is 2

Value

gammaNUMCKpar returns a list with the indices corresponding to each matching pattern, which can be fed directly into tableCounts and matchesLink.

Author(s)

Ted Enamorado <[email protected]>, Ben Fifield <[email protected]>, and Kosuke Imai

Examples

1
2
3
4
## Not run: 
g1 <- gammaNUMCKpar(dfA$birthyear, dfB$birthyear)

## End(Not run)

fastLink documentation built on Nov. 12, 2018, 5:05 p.m.