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.

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

character vector.

Value

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