calculate_priori: Generates vector of priori values one for each row in...

calculate_prioriR Documentation

Generates vector of priori values one for each row in x_y_rec_checks, This function is the default for creating priori values but,.. You can inject your own priori functions by passing a function into the priori_func parameter into the find_posterior function. this function should be able to take all the parameters that this function takes

Description

Generates vector of priori values one for each row in x_y_rec_checks, This function is the default for creating priori values but,.. You can inject your own priori functions by passing a function into the priori_func parameter into the find_posterior function. this function should be able to take all the parameters that this function takes

Usage

calculate_priori(
  x_y_rec_checks,
  n_x,
  n_y,
  total_comparisons = NULL,
  row_name_nm = TOKENIZE_DEFAULT_ROW_NAME,
  suffix = TOKEN_SUFFIX_DEFAULT,
  ...
)

Arguments

x_y_rec_checks

Dataframe with records indicating row_numbers of each of the datasets.

n_x

Integer. Number of records in first dataset

n_y

Integer. Number of records in second dataset

total_comparisons

Integer. Indicates total Comparisons that could be done between datasets#'

row_name_nm

String. rowname to use for each dataset. Default TOKENIZE_DEFAULT_ROW_NAME

suffix

String vector of length 2. Default TOKEN_SUFFIX_DEFAULT

...

ignored

Examples


calculate_priori(
                 x_y_rec_checks = dplyr::tibble(row_name.x = sample(1:1000, 100, replace=TRUE),
                        row_name.y = sample(1:1000000, 100, replace=TRUE)),
                 n_x = 100,
                 n_y = 1000000
)


csps-efpc/TokenLink documentation built on Feb. 10, 2023, 3:30 a.m.