LM_est: Linear Model Estimation using the nlme package.

View source: R/three_methods.r

LM_estR Documentation

Linear Model Estimation using the nlme package.

Description

This gets the REML or ML estimates and predictions of random effects from the nlme package. function does.

Usage

LM_est(x, y, dat, method = "REML")

Arguments

x

Design matrix, (p+1)xn, with intercept.

y

Response vector of nx1.

dat

Data frame

method

Character string indicating method to use, either "ML" or "REML" (defaults to REML).

Value

theta

Fixed effects esimates.

ses

Standard error for fixed effects.

varb

Variances.

sigma

Error.

ehat

Raw residuals

standr.lme

Standardized residual

effect_sch

Cluster random error.

effect_sec

Subcluster random error.

effect_err

Epsilon error.

Author(s)

Yusuf Bilgic

References

J. Pinheiro, D. Bates, S. DebRoy, D. Sarkar and R Development Core Team. nlme linear and non- linear mixed effects models. The R Journal, 2011. URL http://CRAN.R-project.org/package=nlme. R package version 3.1-98.

See Also

rlme


herbps10/rlme documentation built on Nov. 25, 2022, 1:38 p.m.