is_estimable function

Estimability of Contrasts

Estimability of Contrasts

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

Examples

# FIXME: We need some examples here

See Also

nullspace

Author(s)

Rune Haubo B. Christensen

  • Maintainer: Rune Haubo Bojesen Christensen
  • License: GPL (>= 2)
  • Last published: 2020-10-23