Skip to content

ENH: estimate risk ratio in binomial model #2215

Open

Description

@josef-pkt

based on the comments in #2208

risk ratio is a useful effects measure that is often used in medical, epidemiological studies, and I guess other areas.

It makes a good use, example and test case for several extensions on top of GLM or Logit, and there is a large literature for it.

  • eform: exponentiated parameters as in Stata, rr is eform in log-binomial model
  • predictive margins: average treatment effect, ATTreated, ATUntreated see Bender Kuss 2010 (NNT, EIN, NNE) (partially specific to a binary exog, not as general as DiscreteMargins)
  • log-binomial model for out-of domain GLM/LEF as in GLM domain violations with non-canonical links #2208
  • comparison of different models, e.g. Poisson with robust standard errors because of variance misspecification.

Bender Kuss 2010
Ralf Bender, Oliver Kuss, Methods to calculate relative risks, risk differences, and numbers needed to treat from logistic regression, Journal of Clinical Epidemiology, Volume 63, Issue 1, January 2010, Pages 7-8, ISSN 0895-4356, http://dx.doi.org/10.1016/j.jclinepi.2009.07.007.

Bender Kuss respond to this article by Austin, which derives the population average RR:

Peter C. Austin, Absolute risk reductions, relative risks, relative risk reductions, and numbers needed to treat can be obtained from a logistic regression model, Journal of Clinical Epidemiology, Volume 63, Issue 1, January 2010, Pages 2-6, ISSN 0895-4356, http://dx.doi.org/10.1016/j.jclinepi.2008.11.004.

(They take the average of the probability given treated and given untreated separately and then divide. I would have calculated the RR directly for each observation and then average the RR.
I've seen also in another article the same averaging as Austin.)

and to finish the list:
the response of Austin to Bender and Kuss with reference to the econometrics literature for the difference between ATE and ATT
Peter C. Austin, Different measures of treatment effect for different research questions, Journal of Clinical Epidemiology, Volume 63, Issue 1, January 2010, Pages 9-10, ISSN 0895-4356, http://dx.doi.org/10.1016/j.jclinepi.2009.07.006.

Activity

  1. added this to the 0.8 milestone on Jan 29, 2015
  2. josef-pkt commented on Jan 29, 2015

    @josef-pkt
    MemberAuthor

    possibly for 0.8: I'd like to finish the eform, and the predictive margin for ATE, ATT, ...

  3. josef-pkt commented on Jan 29, 2015

    @josef-pkt
    MemberAuthor

    related an overview/review for Treatment effects including propensity score matching methods:

    Austin, Peter C., and Andreas Laupacis. 2011. “A Tutorial on Methods to Estimating Clinically and Policy-Meaningful Measures of Treatment Effects in Prospective Observational Studies: A Review.” The International Journal of Biostatistics 7 (1): 1–32.
    http://www.degruyter.com/view/j/ijb.2011.7.issue-1/ijb.2011.7.1.1285/ijb.2011.7.1.1285.xml

  4. josef-pkt commented on Jan 30, 2015

    @josef-pkt
    MemberAuthor

    another reference, I don't have access
    looks like Poisson with cluster robust standard errors
    http://smm.sagepub.com/content/22/6/661.abstract
    Zou, G. Y., and Allan Donner. 2013. “Extension of the Modified Poisson Regression Model to Prospective Studies with Correlated Binary Data.” Statistical Methods in Medical Research 22 (6): 661–70. doi:10.1177/0962280211427759.

    http://aje.oxfordjournals.org/content/159/7/702.long seems to be what started Poisson with robust standard errors for risk ratio. based on number of citations

  5. josef-pkt commented on Jan 30, 2015

    @josef-pkt
    MemberAuthor

    a last one for now:
    Marshner in discussion of Fitzmaurice et al
    http://biostatistics.oxfordjournals.org/content/16/1/1.full

    Poisson versus Log-Binomial MLE (after solving convergence problems)
    I didn't read Marschner and Gillett (2012) (that takes more than 5 minutes)
    Unless all x are bound in a narrow range or low upper bound, there is no way that Log-Binomial MLE exists without "cheating"
    Also a constant risk ratio exp(beta) cannot really exist if the probability is close to 1 for some untreated observations, and adding the treatment would increase the probability to above 1.

    Imposing the constraint p<=1 on the parameter estimates will need to distort/bias it to take care of the upper bound constraint. Without imposing the constraint, the risk ratio (exp(beta)) can have the interpretation of a local approximation for observations that are sufficiently inside the boundaries, i.e. the big group in the middle (?).

    One more: in the simulations they often use at most one or two explanatory variables that are always from a fixed interval distribution (uniform, beta).
    This might be fine for designed experiments but sounds pretty unrealistic for observational studies.
    (Austin ? treatment/drug prescription at hospital discharge had 10 or more explanatory variables, many or most of them continuous.)

  6. josef-pkt commented on Jan 30, 2015

    @josef-pkt
    MemberAuthor

    overview of methods using Stata
    https://ideas.repec.org/a/tsj/stataj/v9y2009i2p175-196.html
    Cummings, Peter. 2009. “Methods for Estimating Adjusted Risk Ratios.” Stata Journal 9 (2): 175–96.

  7. josef-pkt commented on Jun 22, 2015

    @josef-pkt
    MemberAuthor

    A reference for risk ratio and similar in the context of inverse probability weighting see #2443

    Tu, Chunhao, and Woon Yuen Koh. 2014. “Comparison of Adjusted and Unadjusted Marginal Probabilities for Estimating Binomial Parameters in Observational Studies.” Journal of Statistical Computation and Simulation 84 (12): 2644–51. doi:10.1080/00949655.2013.806923.
    http://www.tandfonline.com/doi/abs/10.1080/00949655.2013.806923

    short paper with brief summary of methods and Monte Carlo simulation

    (edit after reading this paper: missing whitespace between words is annoying, looks like only correctly specified scenario in the simulations, results look a bit surprising or "weird")

  8. josef-pkt commented on May 21, 2017

    @josef-pkt
    MemberAuthor

    an interesting application for log binomial

    The binary response is "at least one success in subsample of n_i trials":
    https://stats.stackexchange.com/questions/279689/predicting-a-fair-coin-flip-outcome-with-logistic-regression/279813#279813

    related: two-sample Binomial with linear link would allow direct tests on difference of proportion (but without nonlinear transformation to make the test statistic more "normal")

  9. josef-pkt commented on Jan 6, 2018

    @josef-pkt
    MemberAuthor

    my old gist is https://gist.github.com/josef-pkt/f42259d4e73340be2d2b
    but it doesn't include the foreign var-func example from #1777
    AFAIR, I used a almost binomial variance function from one of the references for poisson.

  10. josef-pkt commented on Jan 14, 2020

    @josef-pkt
    MemberAuthor

    #3759 (comment)
    Muller MacLehose have risk-ratio as an example for marginal standardization.
    AFAICS, this is the same as the margins for dummy variables in discrete, and maybe in GLM
    (GLM/GEE has still incomplete support for Margins)

    (I guess I didn't add the version that uses DiscreteMargins in my old notebook. AFAIR GLM didn't have margins yet.)

  11. josef-pkt commented on Mar 2, 2020

    @josef-pkt
    MemberAuthor

    another older article

    Frome, Edward L., and Harvey Checkoway. 1985. “Use of Poisson Regression Models in Estimating Incidence Rates and Ratios.” American Journal of Epidemiology 121 (2): 309–23. https://doi.org/10.1093/oxfordjournals.aje.a114001.

  12. removed this from the 0.8 milestone on Dec 15, 2020
  13. josef-pkt commented on Sep 8, 2022

    @josef-pkt
    MemberAuthor

    another article

    Kleinman, Lawrence C., and Edward C. Norton. 2009. “What’s the Risk? A Simple Approach for Estimating Adjusted Risk Measures from Nonlinear Models Including Logistic Regression.” Health Services Research 44 (1): 288–302. https://doi.org/10.1111/j.1475-6773.2008.00900.x.

    found while searching for emmeans, margins
    also related to ATE

    candidate to add to new get_prediction for binary or binomial endog.

  14. josef-pkt commented on Mar 5, 2023

    @josef-pkt
    MemberAuthor

    bump for 0.15
    I was looking at more recent articles for risk ratio estimation, including cluster/group randomized trials (using GEE)

    one possibility:
    add get_prediction which="risk-ratio" to GLM but it will be available only for binomial, i.e. we will need to have family specific which.
    I guess it can be easily implemented now with the new support for get_prediction and nonlinear delta method.

    also, this might be similar to or the same as margin for binary treatment. Need to compare math and implementation.
    However, margin is only for "diff", i.e. risk difference and not risk ratio.
    (although we might be able to get diff in logs)
    aside: I never checked whether the log for elasticities is inside or outside the sum over obs.

    e.g. comparing 3 approaches, log-binomial, poisson and "regression standardization using logistic regression" (i.e. the above)

    Fuyama, Kanako, Yasuhiro Hagiwara, and Yutaka Matsuyama. “A Simulation Study of Regression Approaches for Estimating Risk Ratios in the Presence of Multiple Confounders.” Emerging Themes in Epidemiology 18, no. 1 (December 11, 2021): 18. https://doi.org/10.1186/s12982-021-00107-2.

  15. added this to the 0.15 milestone on Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions