Produce a PDF showing tables of possible de-identification choices, choices that meet a set parameter, and graphs of each decision for individual variables.

make_deidentify_choices_report(
  data,
  group_rare_values_cols,
  preferred_k_score = NULL,
  file_name
)

Arguments

data

A data.frame with the data you want to de-identify.

group_rare_values_cols

A string or vector of strings with the columns that you want to turn rare values (below k% where k is 1-99) into NA.

preferred_k_score

A number of vector of numbers to set the minimum (and maximum if a vector) k-score you want from the possible choices.

file_name

A string with the name of the PDF file that will be generated by the function. Must end in '.pdf'. The file will be generated in the current working directory.

Value

A PDF with a table of all possible choices, a table of the choices that meet the preferred_k_score parameter, and graphs of decision outcomes.