The goal of missr is to help you classify missing data as MCAR, MAR, or MNAR. It does this by providing:
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)