Diagnostic Tools for Logistic and Conditional Logistic Regression

Provides tools for fitting, assessing, and comparing logistic and conditional logistic regression models. Includes residual diagnostics and goodness of fit measures for model development and evaluation in matched case control studies.


CLRtools: Diagnostic Tools for Logistic and Conditional Logistic Regression

This repository contains the source code for the CLRtools R package. CLRtools provides functions to support the structured development of logistic regression and conditional logistic regression models. The package also includes diagnostic tools for both modelling frameworks, including residual based diagnostic plots, influence diagnostics, and Bayesian inspired diagnostic plots to support model assessment.

The package includes vignettes that demonstrate the complete modelling workflow. The logistic regression vignette uses the GLOW500 dataset, which examines risk factors for fracture in women over 50. The conditional logistic regression vignette uses the GLOW11M dataset, a 1:1 matched case control dataset derived from GLOW500, where each woman with a fracture is matched to a woman of the same age without a fracture.

Contributions and suggestions are welcome.

Installation and loading

  • Install from CRAN as follow:
install.packages("CLRtools")
  • Or, install the latest version from GitHub as follow:
# Install
if(!require(devtools)) install.packages("devtools")
devtools::install_github("brendacontla/CLRtools")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("CLRtools")

0.1.2 by Brenda Contla Hernández, 2 months ago


https://github.com/brendacontla/CLRtools


Report a bug at https://github.com/brendacontla/CLRtools/issues


Browse source code at https://github.com/cran/CLRtools


Authors: Brenda Contla Hernández [aut, cre] , Matthieu Vignes [ctb] (Provided statistical guidance , conceptual feedback , and supervision) , Chris Compton [ctb] (Provided statistical guidance , conceptual feedback , and supervision)


Documentation:   PDF Manual  


GPL-3 license


Imports bayesplot, caret, dplyr, ggplot2, ggpubr, lmtest, loo, patchwork, RColorBrewer, rlang, rstan, survival, tidyr

Suggests dagitty, ggdag, knitr, rmarkdown, rstanarm


See at CRAN