Search code examples
rinstall.packages

BaylorEdPsych Package for RStudio; Can't install package


I am trying to use the Littles Test out of the BayorEdPsych-Package to test for MCAR assumption. For whatever reason though, my R can't find this package. Is it even still available?

My R Version: R 4.0.3 GUI 1.73 My R Studio Version: Version 1.4.1103

This is the error I get when trying to run install.packages(). The link to that side doesn't really help me.

Is there an alternative test for the MCAR/ MAR assumption? It's not a completely accurate test either way, but it would help me tremendously.

install.packages("BayorEdPsych")
Warning in install.packages :
  package ‘BayorEdPsych’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

Thank you!


Solution

  • As @Zero Pancakes pointed out, BayorEdPsych isn't on CRAN anymore. I would recommend you use mcar_test from naniar package that provides an updated function for the same test. The documentation reads: "Code is adapted from LittleMCAR() in the now-orphaned BaylorEdPsych package". Also, the naniar package is a wonderful package for missing data and it helps to be familiar with it.

    You can find the function documentation here: http://naniar.njtierney.com/reference/mcar_test.html

    Update: The mcar_test function, for now, is only present in the development version of the package naniar. Install it like this:

    # install.packages("remotes")
    remotes::install_github("njtierney/naniar")
    

    Or you can just source the function from the github repository:

    devtools::source_url("https://github.com/njtierney/naniar/blob/master/R/mcar-test.R?raw=TRUE")