Package: detectseparation 0.4.0

detectseparation: Detect and Check for Separation and Infinite Maximum Likelihood Estimates

Provides pre-fit and post-fit methods for detecting separation and infinite maximum likelihood estimates in generalized linear models with categorical responses. The pre-fit methods apply on binomial-response generalized liner models such as logit, probit and cloglog regression, and can be directly supplied as fitting methods to the glm() function. They solve the linear programming problems for the detection of separation developed in Konis (2007, <https://ora.ox.ac.uk/objects/uuid:8f9ee0d0-d78e-4101-9ab4-f9cbceed2a2a>) using 'ROI' <https://cran.r-project.org/package=ROI> or 'lpSolveAPI' <https://cran.r-project.org/package=lpSolveAPI>. The post-fit methods apply to models with categorical responses, including binomial-response generalized linear models and multinomial-response models, such as baseline category logits and adjacent category logits models; for example, the models implemented in the 'brglm2' <https://cran.r-project.org/package=brglm2> package. The post-fit methods successively refit the model with increasing number of iteratively reweighted least squares iterations, and monitor the ratio of the estimated standard error for each parameter to what it has been in the first iteration. According to the results in Lesaffre & Albert (1989, <https://www.jstor.org/stable/2345845>), divergence of those ratios indicates data separation.

Authors:Ioannis Kosmidis [aut, cre], Dirk Schumacher [aut], Florian Schwendinger [aut], Kjell Konis [ctb]

detectseparation_0.4.0.tar.gz
detectseparation_0.4.0.zip(r-4.7)detectseparation_0.4.0.zip(r-4.6)detectseparation_0.4.0.zip(r-4.5)
detectseparation_0.4.0.tgz(r-4.6-any)detectseparation_0.4.0.tgz(r-4.5-any)
detectseparation_0.4.0.tar.gz(r-4.7-any)detectseparation_0.4.0.tar.gz(r-4.6-any)
detectseparation_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
detectseparation/json (API)

# Install 'detectseparation' in R:
install.packages('detectseparation', repos = c('https://ikosmidis.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ikosmidis/detectseparation/issues

Datasets:
  • endometrial - Histology grade and risk factors for 79 cases of endometrial cancer
  • lizards - Habitat preferences of lizards
  • silvapulle1981 - Separation Example Presented in Silvapulle

On CRAN:

Conda:

7.95 score 7 stars 4 packages 45 scripts 5.9k downloads 8 exports 20 dependencies

Last updated from:2bb2104338. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK157
source / vignettesOK212
linux-release-x86_64OK149
macos-release-arm64OK130
macos-oldrel-arm64OK195
windows-develOK96
windows-releaseOK113
windows-oldrelOK81
wasm-releaseOK121

Exports:check_infinite_estimatescheckInfiniteEstimatesdetect_infinite_estimatesdetect_separationdetect_separation_controldetectInfiniteEstimatesdetectSeparationdetectSeparationControl

Dependencies:backportscallrcheckmateclidescfsgluelifecyclelpSolveAPIpkgbuildpkgloadprocessxpsR6registryrlangROIROI.plugin.lpsolverprojrootslam

Detecting separation and infinite estimates in log binomial regression
Introduction | Example | Detect separation | Detect infinite estimates | Fitting the LBRM | Details on the output | Choosing starting values | Simple approach | Hot start via Poisson model | Recommendation | References

Last update: 2022-08-27
Started: 2022-08-27

Detect/check for separation and infinite maximum likelihood estimates in logistic regression
The detectseparation package | Checking for infinite estimates | Detecting separation | Citation | References

Last update: 2022-08-27
Started: 2020-01-04