Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)
)

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

Value

a logical vector of length nrow(contrast) determining if each contrast is estimable

Author(s)

Rune Haubo B. Christensen

See Also

Examples

# FIXME: We need some examples here

lmerTest

Tests in Linear Mixed Effects Models

v3.1-3
GPL (>= 2)
Authors
Alexandra Kuznetsova [aut], Per Bruun Brockhoff [aut, ths], Rune Haubo Bojesen Christensen [aut, cre], Sofie Pødenphant Jensen [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.