calc_risk_diff()
: Main function for calculating risk
differences with robust model fittingformat_risk_diff()
: Format results for
publication-ready displaycreate_rd_table()
: Create formatted tables using
kableExtracreate_simple_table()
: Create simple text-based tables
without dependenciesbirthweight
: Simulated birth weight study data for
examples and testingThis package emerged from research conducted at the Cachar Cancer Hospital and Research Centre, specifically methods developed for calculating prevalence differences in cross-sectional cancer screening studies. The robust model fitting approaches were developed to handle common convergence issues encountered when using identity link functions with binary outcomes.
The package generalizes these methods to work with both prevalence differences (cross-sectional studies) and risk differences (prospective studies), hence the generic name “riskdiff”.