EVOLUTION-MANAGER
Edit File: coef.lme.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Extract lme Coefficients</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for coef.lme {nlme}"><tr><td>coef.lme {nlme}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Extract lme Coefficients</h2> <h3>Description</h3> <p>The estimated coefficients at level <i>i</i> are obtained by adding together the fixed effects estimates and the corresponding random effects estimates at grouping levels less or equal to <i>i</i>. The resulting estimates are returned as a data frame, with rows corresponding to groups and columns to coefficients. Optionally, the returned data frame may be augmented with covariates summarized over groups. </p> <h3>Usage</h3> <pre> ## S3 method for class 'lme' coef(object, augFrame, level, data, which, FUN, omitGroupingFactor, subset, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>object</code></td> <td> <p>an object inheriting from class <code>"<a href="lme.html">lme</a>"</code>, representing a fitted linear mixed-effects model.</p> </td></tr> <tr valign="top"><td><code>augFrame</code></td> <td> <p>an optional logical value. If <code>TRUE</code>, the returned data frame is augmented with variables defined in <code>data</code>; else, if <code>FALSE</code>, only the coefficients are returned. Defaults to <code>FALSE</code>.</p> </td></tr> <tr valign="top"><td><code>level</code></td> <td> <p>an optional positive integer giving the level of grouping to be used in extracting the coefficients from an object with multiple nested grouping levels. Defaults to the highest or innermost level of grouping.</p> </td></tr> <tr valign="top"><td><code>data</code></td> <td> <p>an optional data frame with the variables to be used for augmenting the returned data frame when <code>augFrame = TRUE</code>. Defaults to the data frame used to fit <code>object</code>.</p> </td></tr> <tr valign="top"><td><code>which</code></td> <td> <p>an optional positive integer or character vector specifying which columns of <code>data</code> should be used in the augmentation of the returned data frame. Defaults to all columns in <code>data</code>.</p> </td></tr> <tr valign="top"><td><code>FUN</code></td> <td> <p>an optional summary function or a list of summary functions to be applied to group-varying variables, when collapsing <code>data</code> by groups. Group-invariant variables are always summarized by the unique value that they assume within that group. If <code>FUN</code> is a single function it will be applied to each non-invariant variable by group to produce the summary for that variable. If <code>FUN</code> is a list of functions, the names in the list should designate classes of variables in the frame such as <code>ordered</code>, <code>factor</code>, or <code>numeric</code>. The indicated function will be applied to any group-varying variables of that class. The default functions to be used are <code>mean</code> for numeric factors, and <code>Mode</code> for both <code>factor</code> and <code>ordered</code>. The <code>Mode</code> function, defined internally in <code>gsummary</code>, returns the modal or most popular value of the variable. It is different from the <code>mode</code> function that returns the S-language mode of the variable.</p> </td></tr> <tr valign="top"><td><code>omitGroupingFactor</code></td> <td> <p>an optional logical value. When <code>TRUE</code> the grouping factor itself will be omitted from the group-wise summary of <code>data</code> but the levels of the grouping factor will continue to be used as the row names for the returned data frame. Defaults to <code>FALSE</code>.</p> </td></tr> <tr valign="top"><td><code>subset</code></td> <td> <p>an optional expression specifying a subset</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>some methods for this generic require additional arguments. None are used in this method.</p> </td></tr> </table> <h3>Value</h3> <p>a data frame inheriting from class <code>"coef.lme"</code> with the estimated coefficients at level <code>level</code> and, optionally, other covariates summarized over groups. The returned object also inherits from classes <code>"ranef.lme"</code> and <code>"data.frame"</code>. </p> <h3>Author(s)</h3> <p>José Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a></p> <h3>References</h3> <p>Pinheiro, J. C. and Bates, D. M. (2000), <em>Mixed-Effects Models in S and S-PLUS</em>, Springer, New York, esp. pp. 455-457. </p> <h3>See Also</h3> <p><code><a href="lme.html">lme</a></code>, <code><a href="ranef.lme.html">ranef.lme</a></code>, <code><a href="plot.ranef.lme.html">plot.ranef.lme</a></code>, <code><a href="gsummary.html">gsummary</a></code> </p> <h3>Examples</h3> <pre> fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject) coef(fm1) coef(fm1, augFrame = TRUE) </pre> <hr /><div style="text-align: center;">[Package <em>nlme</em> version 3.1-139 <a href="00Index.html">Index</a>]</div> </body></html>