is_estimable: Estimability of Contrasts
Description
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.
Usage
is_estimable(
contrast,
nullspace = NULL,
X = NULL,
tol = sqrt(.Machine$double.eps)
)
Value
a logical vector of length nrow(contrast) determining if each
contrast is estimable
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
Author
Rune Haubo B. Christensen
Examples
Run this code
# FIXME: We need some examples here
Run the code above in your browser using DataLab