parsnip icon indicating copy to clipboard operation
parsnip copied to clipboard

Conditional Logistic Regression

Open RaymondBalise opened this issue 4 years ago • 2 comments

Conditional Logistic Regression

I don't see how to do conditional logistic regression in the TidyModels ecosystem. It is the workhorse for case/control studies in epidemiology. Google scholar finds ~75,000 articles using it. To learn more take a look at Agresti's Intro to Categorical Analysis chapter 8.2.4 Conditional Logistic Regression for Matched-Pairs*. I coded the book in R ... that chapter is here.

Somebody requested it six months back on SO and I have a pile of epidemiologist learning TM saying they need it.

Many/most people would use survival::clogit() to do conditional logistic.

RaymondBalise avatar Jun 11 '21 12:06 RaymondBalise

We can make a new engine for logistic_reg() and put that in the censored package.

Would you like to make a PR for that?

topepo avatar Jun 24 '21 16:06 topepo

There is info on how to build a parsnip model, and how to add an engine to an existing parsnip model, in this article.

juliasilge avatar Jun 24 '21 18:06 juliasilge

As we haven't seen any further interest in the last few years, I'm going to go ahead and close. This does sound like a great idea for a parsnip extension package--feel free to holler in a new issue if you'd like to implement this in a new package and would appreciate support.

simonpcouch avatar Apr 04 '24 15:04 simonpcouch

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

github-actions[bot] avatar Apr 19 '24 00:04 github-actions[bot]