I adapted LittleMCAR() from the now-orphaned {BaylorEdPsych} package, which was archived by CRAN because {mvnmle} was also archived.
Eric Stemmler updated the function to work with {norm} for ML estimation instead. I rewrote and readapted his code to work with {purrr}, so it should go faster (and it handles edge cases where every value in a row is NA)
I added
mcar_test()
for calculating Little's MCAR statistic. The function returns abroom::glance()
-like tibble with one row and four columns:Description
I adapted
LittleMCAR()
from the now-orphaned {BaylorEdPsych} package, which was archived by CRAN because {mvnmle} was also archived.Eric Stemmler updated the function to work with {norm} for ML estimation instead. I rewrote and readapted his code to work with {purrr}, so it should go faster (and it handles edge cases where every value in a row is NA)
Example
Tests
The function has 100% test coverage.