build_score_settings {fedmatch}R Documentation

Build settings for scoring

Description

build_score_settings is a convenient way to make the proper list for the score_settings argument of merge_plus Each vector in build_score_settings should be the same length, and each position (first, second, third, etc.) corresponds to one variable to score on.

Usage

build_score_settings(
  score_var_x = NULL,
  score_var_y = NULL,
  score_var_both = NULL,
  wgts = NULL,
  score_type
)

Arguments

score_var_x

character vector. the variables from the 'x' dataset to score on

score_var_y

character vector. the variables from the 'y' dataset to score on

score_var_both

the variables from both datasets (shared names) to score on, before any prefixes are applied.

wgts

numeric vector. The weights for the linear sum of scores

score_type

Charcter vector. Options are "in", "indicator", "substr", "difference", "ratio", "stringdist". See the Multivar Matching Vignette for details.

Value

a list containing options for the 'score_settings' argument of merge_plus.


[Package fedmatch version 2.0.6 Index]