smdi_little | R Documentation |
Littleās chi-squared test takes into account possible patterns of missingness across all variables in the dataset. Rejection of the null hypothesis of this test would provide sufficient evidence to indicate that the data are (globally) not MCAR. Please note that compared to smdi_hotelling, this function tests for MCAR globally across all missing covariates.
#' #' Important: don't include variables like ID variables, ZIP codes, dates, etc.
smdi_little(data = NULL)
data |
dataframe or tibble object with partially observed/missing variables |
CAVE: Hotelling's and Little's show high susceptibility with large sample sizes and it is recommended to always interpret the results along with the other diagnostics.
returns a little object with statistics on little's test globally.
Little RJA. A Test of Missing Completely at Random for Multivariate Data with Missing Values. J Am Stat Assoc. 1988;83(404):1198-1202.
mcar_test
library(smdi)
library(dplyr)
smdi_data %>%
smdi_little()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.