CLME-package {CLME}R Documentation

Constrained inference for linear mixed models.

Description

Constrained inference on linear fixed and mixed models using residual bootstrap. Covariates and random effects are permitted but not required.

Appropriate credit should be given when publishing results obtained using CLME, or when developing other programs/packages based off of this one. Use citation(package="CLME") for Bibtex information.

The work was produced in part with funding from the Intramural Research Program of the NIH, National Institute of Environmental Health Sciences (Z01 ES101744).

Details

This package was introduced in Jelsema and Peddada (2016). The primary function is clme. The other functions in this package may be run separately, but in general are designed for use by clme.

The method which is implemented is the constrained linear mixed effects model described in Farnan, Ivanova, and Peddada (2014). See that paper for more details regarding the method. Here we give a brief overview of the assumed model:

Y = X_{1}\theta_{1} + X_{2}\theta_{2} + U\xi + \epsilon

where

Neither covariates (X_2) nor random effects (U) are required by the model or CLME. The covariance matrix of \xi is given by:

T = diag\left( \tau^{2}_{1}I_{c_{1}}, \tau^{2}_{2}I_{c_{2}} , \dots , \tau^{2}_{q}I_{c_{q}} \right)

The first c_{1} random effects will share a common variance, \tau^{2}_{1}, the next c_{2} random effects will share a common variance, and so on. Note that c = \sum_{i=1}^{q} c_i. Homogeneity of variances in the random effects can be induced by letting q=1 (hence c_{1}=c=ncol(U)).

Similarly, the covariance matrix of \epsilon is given by:

\Sigma = diag\left( \sigma^{2}_{1}I_{n_{1}}, \sigma^{2}_{2}I_{n_{2}} , \dots , \sigma^{2}_{q}I_{n_{k}} \right)

Again, the first n_{1} observations will share a common variance, \sigma^{2}_{1}, the next n_{2} will share a common variance, and so on. Note that N = \sum_{i=1}^{k} n_i. Homogeneity of variances in the residuals can be induced by letting k=1.

The order constraints are defined by the matrix A. This is an r \times p matrix where r is the number of constraints, and p=p_{1}+p_{2} is the dimension of \theta = ( \theta_{1}' , \theta_{2}')'. Formally the hypothesis being tested is:

H_{a}: A\theta > 0

For several default orders (simple, umbrella, simple tree) the A matrix can be automatically generated. Alternatively, the user may define a custom A matrix to test other patterns among the elements of \theta. See create.constraints and clme for more details.

For computational reasons, the implementation is not identical to the model expressed. Particularly, the fixed-effects matrix (or matrices) and the random effects matrix are assumed to be columns in a data frame, not passed as matrices. The A matrix is not r\ times p, but r\ times 2, where each row gives the indices of the constrained coefficients. See create.constraints for further explanation.

The creation of this package CLME, this manual, and the vignette were all supported by the Intramural Research Program of the United States' National Institutes of Health (Z01 ES101744).

Author(s)

Maintainer: Casey M. Jelsema jelsema.casey@gmail.com

Authors:

References

Jelsema, C. M. and Peddada, S. D. (2016). CLME: An R Package for Linear Mixed Effects Models under Inequality Constraints. Journal of Statistical Software, 75(1), 1-32. doi:10.18637/jss.v075.i01

Farnan, L., Ivanova, A., and Peddada, S. D. (2014). Linear Mixed Efects Models under Inequality Constraints with Applications. PLOS ONE, 9(1). e84778. doi: 10.1371/journal.pone.0084778

See Also

Useful links:


[Package CLME version 2.0-12 Index]