All Projects → florianhartig → Dharma

florianhartig / Dharma

Diagnostics for HierArchical Regession Models

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Dharma

Mlr
Machine Learning in R
Stars: ✭ 1,542 (+1143.55%)
Mutual labels:  cran, regression
BAS
BAS R package https://merliseclyde.github.io/BAS/
Stars: ✭ 36 (-70.97%)
Mutual labels:  cran, regression
ridge
CRAN R Package: Ridge Regression with automatic selection of the penalty parameter
Stars: ✭ 17 (-86.29%)
Mutual labels:  cran, regression
Margins
An R Port of Stata's 'margins' Command
Stars: ✭ 225 (+81.45%)
Mutual labels:  cran, regression
Openml R
R package to interface with OpenML
Stars: ✭ 81 (-34.68%)
Mutual labels:  cran, regression
Machine Learning Algorithms
A curated list of almost all machine learning algorithms and deep learning algorithms grouped by category.
Stars: ✭ 92 (-25.81%)
Mutual labels:  regression
Manipulatewidget
Add More Interactivity to htmlwidgets
Stars: ✭ 110 (-11.29%)
Mutual labels:  cran
Refinr
Cluster and merge similar char values: an R implementation of Open Refine clustering algorithms
Stars: ✭ 91 (-26.61%)
Mutual labels:  cran
Startup
🔧 R package: startup - Friendly R Startup Configuration
Stars: ✭ 107 (-13.71%)
Mutual labels:  cran
Wooldridge
The official R data package for "Introductory Econometrics: A Modern Approach". A vignette contains example models from each chapter.
Stars: ✭ 90 (-27.42%)
Mutual labels:  cran
Gpstuff
GPstuff - Gaussian process models for Bayesian analysis
Stars: ✭ 106 (-14.52%)
Mutual labels:  regression
Colourlovers
🎨 📦 R Client for the COLOURlovers API
Stars: ✭ 92 (-25.81%)
Mutual labels:  cran
Rul Net
Deep learning approach for estimation of Remaining Useful Life (RUL) of an engine
Stars: ✭ 112 (-9.68%)
Mutual labels:  regression
Changepoint
A place for the development version of the changepoint package on CRAN.
Stars: ✭ 90 (-27.42%)
Mutual labels:  cran
Imputets
CRAN R Package: Time Series Missing Value Imputation
Stars: ✭ 114 (-8.06%)
Mutual labels:  cran
Openxlsx
openxlsx - a fast way to read and write complex xslx files
Stars: ✭ 91 (-26.61%)
Mutual labels:  cran
Neuroflow
Artificial Neural Networks for Scala
Stars: ✭ 105 (-15.32%)
Mutual labels:  regression
Rinside
Seamless embedding of R in C++ programs
Stars: ✭ 112 (-9.68%)
Mutual labels:  cran
Shiny.i18n
Shiny applications internationalisation made easy
Stars: ✭ 104 (-16.13%)
Mutual labels:  cran
Rintrojs
Wrapper for the Intro.js library
Stars: ✭ 96 (-22.58%)
Mutual labels:  cran

Project Status: Active – The project has reached a stable, usable state and is being actively developed. License: AGPL v3 CRAN_Status_Badge minimal R version

DHARMa - Residual Diagnostics for HierARchical Models

The 'DHARMa' package uses a simulation-based approach to create readily interpretable scaled (quantile) residuals for fitted (generalized) linear mixed models. Currently supported are linear and generalized linear (mixed) models from 'lme4' (classes 'lmerMod', 'glmerMod'), 'glmmTMB' 'GLMMadaptive' and 'spaMM', generalized additive models ('gam' from 'mgcv'), 'glm' (including 'negbin' from 'MASS', but excluding quasi-distributions) and 'lm' model classes. Moreover, externally created simulations, e.g. posterior predictive simulations from Bayesian software such as 'JAGS', 'STAN', or 'BUGS' can be processed as well. The resulting residuals are standardized to values between 0 and 1 and can be interpreted as intuitively as residuals from a linear regression. The package also provides a number of plot and test functions for typical model misspecification problems, such as over/underdispersion, zero-inflation, and residual spatial and temporal autocorrelation.

Getting DHARMa

From CRAN

DHARMa is on CRAN. So, to install the latest CRAN release, just run

install.packages("DHARMa")

To get an overview about its functionality once the package is installed, run

library(DHARMa)
?DHARMa
vignette("DHARMa", package="DHARMa")

The vignette, which can also be read online here, provides many exampless about how to use the package function for the supported regression models. To cite the package, run

citation("DHARMa")

To fit a model (from any package supported by DHARMa), run

testData = createData(sampleSize = 200, family = poisson())
m1 <- glm(observedResponse ~ Environment1, 
                     family = "poisson", data = testData)

res <- simulateResiduals(m1, plot = T)

and read to help of ?simulateResiduals and the vignette to understand what you can do with the object res.

Development release

If you want to install the current (development) version from this repository, run

devtools::install_github(repo = "florianhartig/DHARMa", subdir = "DHARMa", 
dependencies = T, build_vignettes = T)

Below the status of the automatic Travis CI tests on the master branch (if this doesn't load see here)

Build Status

Additionally, we also test via GitHub Actions

R-CMD-check

Development branches / older releases

To install a specific (older) release, or a particular branch, decide for the version number that you want to install in https://github.com/florianhartig/DHARMa/releases (version numbering corresponds to CRAN, but there may be smaller releases that were not pushed to CRAN), or branch and run

devtools::install_github(repo = "florianhartig/DHARMa", subdir = "DHARMa", 
ref = "v0.0.2.1", dependencies = T, build_vignettes = T)

with the appropriate version number / branch as argument to ref.

Acknowledgements

A question by Catalina Gutiérrez Chacón provided me with the motivation write the first version of DHARMa. Thanks for useful suggestions to improve DHARMa by Jochen Fründ, Tomer J. Czaczkes, Luis Cayuela Delgado, Alexandre Courtiol, Jim Thorson, Lukas Lohse, jmniehaus, justintimm and many other people that made comments on GitHub, Crossvalidated or via email.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].