apply_rule_of_N {pvda}R Documentation

apply_rule_of_N

Description

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.

Details

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

Value

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


[Package pvda version 0.0.3 Index]