Add Firth logistic regression to BAS
@merliseclyde is already working on this.
Since Nov 9, 2022.
Assessment
This issue has not been assessed yet.
Description
Separation is a current problem with bas.glm in logistic regressions as which uses nested integrated Laplace approximations which depend on MLEs. With quasi or perfect separation, MLEs are not identifiable, which Firth Logistic regression addresses through data augmentation or equivalently a penalty term using Jeffreys invariant prior.
For DA, an augmented data set with $3n$ observations is constructed with stacking the design matrix 3 times and a response vector that is (the original Y, a nx1 vector of 1's, and a nx1 vector of 0's). The augmented response are accompanied by weights: $w_{i} = h_i /2$ where
$$H = W^{1/2}X(X^TWX)^{-1}X^TW^{1/2}$$
and $W$ is a diagonal matrix with $[W]_{ii} = \pi_i ( 1 - \pi_i)$.
Questions in implementation:
- need to fix issue related to incorrect standard errors in weighted regressions and GLMS - issue #52
- should weights be based on full model or different for each model. (seems like model dependent ideal)
- can data augmentation be based on adding $n$ observations through sufficiency? i.e add proportion 0.5 and weights $w_i = h_i$?
- should require iterative updating to get MLE's but should be feasible with current iteratively weighted least squares implentation for logistic regression
of interest for JASP @vandenman ?
- Dominant language
- C
- Stars
- 47
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from merliseclyde/BAS
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
merliseclyde/BAS#118 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
merliseclyde/BAS#106 · 1 comment ·
-
CRAN Note enhancement work in progress
Difficulty 5/5 Over a week Newbie friendliness 25/100
merliseclyde/BAS#88 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
merliseclyde/BAS#25 · 6 comments ·
-
enhancement help wanted
Difficulty 5/5 Over a week Newbie friendliness 15/100
merliseclyde/BAS#22 · 1 comment ·
All issues in merliseclyde/BAS
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Jstar269/nakagawa-recomp#3753 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Life-Framework/Life-Framework#7017 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gjrtimmer/jetson-nvmpi#170 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100