lmeForm | R Documentation |
This function computes LME formulas from multilevel ecological data series (MEDS).
lmeForm(rd, prim.cov = FALSE, resp = NULL, covar = NULL, lev.rm = NULL)
rd |
|
prim.cov |
|
resp |
|
covar |
|
lev.rm |
|
Formulas of the form resp ~ cov
| group
(see groupedData
function) are computed from MEDS. The formulas
can be implemented by
modelFrame
function to detrend MEDS
formula
with any of the forms: resp ~ cov | group
or
~ cov
.
Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>
Pinheiro J. C., D. M. Bates. 2000. Mixed-effects models in S and S-PLUS. Springer, New York.
##Multilevel ecological data series of tree-ring widths: data(Prings05,envir = environment()) ## LME formula: form1 <- lmeForm(Prings05,prim.cov = FALSE) print(form1) ## removing the sample level from the formula form2 <- lmeForm(Prings05,lev.rm = 'sample') form2 <- lmeForm(Prings05,lev.rm = 1) ## groupedData object with the LME formula gdata <- groupedData(lmeForm(Prings05,lev.rm = 1), data = Prings05) plot(gdata,groups = ~ sample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.