Computes the estimability of a vector or matrix of contrasts (i.e. linear functions of the coefficients) from the nullspace of a design matrix or potentially directly from the design matrix.
is_estimable( contrast, nullspace =NULL, X =NULL, tol = sqrt(.Machine$double.eps))
Arguments
contrast: a numeric matrix where each row is a contrast vector for which estimability is computed. The matrix should have as many columns as there are columns in the design matrix (which equals the number of coefficients). If contrast is a vector it is coerced to a matrix.
nullspace: the nullspace of the design matrix.
X: design matrix.
tol: tolerance for determining if a contrast is orthogonal to the
Returns
a logical vector of length nrow(contrast) determining if each contrast is estimable