is_estimable function

Determines if contrasts are estimable.

Determines if contrasts are estimable.

Determines if contrasts are estimable, that is, if the contrasts can be written as a linear function of the data.

is_estimable(K, null.basis)

Arguments

  • K: A matrix.
  • null.basis: A basis for a null space (can be found with null_basis()).

Returns

A logical vector.

Details

Consider the setting E(Y)=XbE(Y)=Xb. A linear function of bb, say lbl'b is estimable if and only if there exists an rr such that rX=lr'X=l' or equivalently l=Xrl=X'r. Hence ll must be in the column space of XX', i.e. in the orthogonal complement of the null space of XX. Hence, with a basis BB for the null space, is_estimable() checks if each row ll of the matrix KK is perpendicular to each column basis vector in BB.

References

http://web.mit.edu/18.06/www/Essays/newpaper_ver3.pdf

Author(s)

Søren Højsgaard, sorenh@math.aau.dk