Learn R Programming


output: github_document

riskdiff

[]

The riskdiff package provides robust methods for calculating risk differences (also known as prevalence differences in cross-sectional studies) using generalized linear models with automatic link function selection and boundary detection.

✨ New in v0.2.0: Boundary Detection

riskdiff now includes cutting-edge boundary detection capabilities that identify when maximum likelihood estimates lie at the edge of the parameter space - a common issue with identity link models that other packages ignore.

Features

  • **

Copy Link

Version

Install

install.packages('riskdiff')

Version

0.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

John D. Murphy

Last Published

June 30th, 2025

Functions in riskdiff (0.2.1)

print.iptw_result

Print Method for IPTW Results
.detect_boundary

Detect Parameter Space Boundary Issues
print.riskdiff_result

Print method for riskdiff_result objects
summary.riskdiff_iptw_result

Summary Method for IPTW Risk Difference Results
print.riskdiff_iptw_result

Print Method for IPTW Risk Difference Results
.detect_separation

Detect Complete or Quasi-Separation
get_valid_boundary_types

Get Valid Boundary Types
format_risk_diff

Format Risk Difference Results for Display
create_summary_table

Create Summary Table for Risk Difference Results
cachar_sample

Synthetic Cancer Risk Factor Study Data
create_simple_table

Create a Simple Summary Table
create_balance_plots

Create Balance Plots for IPTW Analysis
create_forest_plot

Create Forest Plot for Risk Difference Results
create_rd_table

Create Formatted Table of Risk Difference Results
calc_risk_diff

Calculate Risk Differences with Robust Model Fitting and Boundary Detection
calc_risk_diff_iptw

Calculate Standardized Risk Differences Using IPTW
check_iptw_assumptions

Check IPTW Assumptions
calc_iptw_weights

Calculate Propensity Scores and IPTW Weights
riskdiff-package

riskdiff: Risk Difference Estimation with Multiple Link Functions and Inverse Probability of Treatment Weighting
get_quality_legend

Get Quality Legend for Risk Difference Results
.assess_result_quality

Assess Quality of Risk Difference Results