Comments (6)
Yes. For binomial-response models brglmFit with type = AS_mean produces the same estimates as brglm does. So, regardless of what you use the estimates should be finite. Can you send me a reproducible example?
from brglm2.
I use my data and cannot reproduce the situation again. I think the warning message occurred during the bootstrap steps. Let me try if it can be reproduced again.
from brglm2.
Hi Joy, please note that for some reason whenever you are writing all past discussion is posted too (perhaps you use you mail client?). So please use the GitHub interface for the discussion, as I would like to keep the issue discussion clean for the benefit of other users.
Having said that I cannot find the attached code and hence cannot replicate the issue.
Please repost.
from brglm2.
Dear Dr. Kosmidis,
I'm sorry. I did not know that when I write mail, it will be posted.
Attached are the data and code I used. I think the warning message "brglmFit: algorithm did not converge" came out during the bootstraps, By the way, I also used another package called "medflex" in my works.
from brglm2.
Hi Joy,
Thanks for the reproducible example!
neModel seems to be doing bootstrap by case resampling or a associated variant and your data set has covariates that are highly imbalanced. For example, the dummy corresponding toStage == "not reported"
has 1002 zeros and 12 ones. So, the bootstrap datasets can end up having very few ones or only zeros with positive probability.
So, I think it is not brglmFit
's fault. brglmFit
now tries hard to find good starting values and fit the model despite the highly imbalanced datasets, and it actually does this very well and better than brglm and glm! It only fails in a handful of cases of the above kind, and both brglm::brglm.fit
and glm.fit
fail to converge on those and more cases.
Overall, I think neModel
can be either given an option to ignore bootstrap samples where fitting has not been possible (returning a warning potentially), or use residual-resampling bootstrap if the methodology permits. But this is the call of neModel
's developers. Perhaps you can ask them directly?
I hope that helps. Please let me know if you find any bugs with brglmFit
.
All the best,
Ioannis
from brglm2.
Dear Dr. Kosmidis,
Thank you for your kind assistance and good advice!
from brglm2.
Related Issues (20)
- Methods for anova, drop1, add1
- Profiling methods HOT 2
- Multi-type fitter and diagnostics
- random effects in brmultinom? HOT 2
- AIC appears to be -2*loglik without parameter penalty HOT 1
- anti-logit of "linear.predictor" does not return probability HOT 4
- "likelihood ratio test" with output from brmultinom HOT 12
- confidence intervals for brmultinom? HOT 1
- Bias reduced logistic regression model estimation with one parameter produces NA HOT 1
- brglm2 algorithm does not converge HOT 4
- Error when control is specified explicitly
- Add `check_aliasing` argument in `brglm_control()`
- The variables responsible on the separation are not shown HOT 2
- brglmFit() and brglm_fit() broken for hello world HOT 4
- Convergence problem HOT 2
- error when trying brnb for negative binomial HOT 7
- Support for Ordered Logistic Regression (cumulative family object) HOT 3
- Step{stat} function does not pick the the model with the lowest AIC HOT 4
- Support for quasi... families? HOT 1
- family = "gaussian" does not seem to work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brglm2.