Learn R Programming

NMAR (version 0.1.1)

el_check_auxiliary_inconsistency_matrix: Check auxiliary means consistency against respondents' sample support.

Description

Computes a simple z-score diagnostic comparing user-supplied auxiliary means to the respondents' sample means. The caller is responsible for comparing the returned maximum z-score to any desired threshold.

Usage

el_check_auxiliary_inconsistency_matrix(
  auxiliary_matrix_resp,
  provided_means = NULL
)

Value

list(max_z = numeric(1) or NA, cols = character())

Arguments

auxiliary_matrix_resp

Respondent-side auxiliary design matrix.

provided_means

Optional named numeric vector of auxiliary means aligned to the matrix columns.