log-binomial-log-poisson-regression

Estimate risk and prevalence ratios using log-binomial and log-Poisson regression.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/mrl2013/p8483-and-p8400-assistant --skill log-binomial-log-poisson-regression
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: log-binomial-log-poisson-regression
Source: https://github.com/mrl2013/p8483-and-p8400-assistant/tree/main/.github/skills/log-binomial-log-poisson-regression
Command: npx skills add https://github.com/mrl2013/p8483-and-p8400-assistant --skill log-binomial-log-poisson-regression

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires proc_genmod, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides methods to estimate risk ratios and prevalence ratios for binary outcomes, avoiding the OR-RR divergence in logistic regression when outcomes are common.

Core Features & Use Cases

  • Risk Ratio Estimation: For cohort studies or prospective longitudinal data, estimate the ratio of cumulative incidence probabilities between groups.
  • Prevalence Ratio Estimation: For cross-sectional data, estimate the ratio of probabilities of currently having the condition at a single time point.
  • Log-Binomial and Log-Poisson Regression: Provides alternative regression models for binary data when log-binomial fails to converge.

Quick Start

Run the log-binomial regression model on the dataset to estimate the risk ratio between two groups.

Frequently Asked Questions about log-binomial-log-poisson-regression

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use log-binomial regression instead of logistic regression?

Use log-binomial regression instead of logistic regression to estimate risk ratios or prevalence ratios for binary outcomes, avoiding the divergence between odds ratios and risk ratios when outcomes are common.

What do I do if my log-binomial regression model fails to converge?

If your log-binomial regression model fails to converge, you can use log-Poisson regression as an alternative to estimate risk ratios, provided you apply robust variance estimators to correct for distributional misspecification.

How do I estimate prevalence ratios for cross-sectional data?

Estimate prevalence ratios for cross-sectional data by running log-binomial or log-poisson regression models on your dataset to calculate the ratio of probabilities of currently having the condition between groups.

Why does log-Poisson regression require robust variance estimators?

Log-Poisson regression requires robust variance estimators because the Poisson distribution is misspecified for binary outcomes; applying robust variance estimators corrects this misspecification to provide valid standard errors.

Can I use proc_genmod to estimate risk ratios for cohort studies?

Yes, you can use proc_genmod to estimate risk ratios for cohort studies by configuring log-binomial or log-poisson regression models to compare cumulative incidence probabilities between exposure groups.

What is the difference between risk ratio and prevalence ratio estimation?

Risk ratio estimation compares cumulative incidence probabilities in cohort studies, whereas prevalence ratio estimation compares the current probability of having a condition in cross-sectional data using log-binomial or log-poisson models.