Skip to contents

Internal function to set disproportionality cells for ROR and PRR to NA when observed count < 3

Usage

apply_rule_of_N(
  da_df = NULL,
  da_estimators = c("ic", "prr", "ror"),
  rule_of_N = NULL
)

Arguments

da_df

See the intermediate object da_df in add_disproportionality

da_estimators

Default is c("ic", "prr", "ror").

rule_of_N

An length one integer between 0 and 10.

Value

The input data frame (da_df) with potentially some cells set to NA.

Details

Sometimes, you want to protect yourself from spurious findings based on small observed counts combined with infinitesimal expected counts.