Classify Missing Data as MCAR, MAR, or MNAR

Classify missing data as missing completely at random (MCAR), missing at random (MAR), or missing not at random (MNAR). This step is required before handling missing data (e.g. mean imputation) so that bias is not introduced. See Little (1988) for the statistical rationale for the methods used.


missr

CRANstatus R-CMD-check Codecov testcoverage Lifecycle:stable

The goal of missr is to help you classify missing data as MCAR, MAR, or MNAR. It does this by providing:

  • Statistical tests for MCAR and MAR:
    • mcar()
    • mar()
  • Process of elimination for MNAR:
    • mnar()

Installation

You can install missr from CRAN:

install.packages("missr")

Or you can install the development version on github using remotes:

# install.packages("remotes")
remotes::install_github("NoahHellen/missr")

Examples

  • Testing for MCAR.
    • Null hypothesis is that data is MCAR; if the p-value is not significant, there is evidence the data is MCAR.
mcar(data)
  • Testing for MAR.
    • Each null hypothesis is that data is not MAR; if each p-value is significant, there is evidence the data is MAR.
mar(data)
  • Testing for MNAR.
    • No new tests, simply a process of elimination.
mnar(data)

License

missr has an MIT license, as found in the LICENSE file.

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("missr")

1.0.1 by Noah William Trelawny Hellen, a year ago


https://github.com/NoahHellen/missr, https://noahhellen.github.io/missr/


Report a bug at https://github.com/NoahHellen/missr/issues


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


Authors: Noah William Trelawny Hellen [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports norm, tibble, lifecycle

Suggests knitr, rmarkdown, testthat


See at CRAN