EVOLUTION-MANAGER
Edit File: coef.modelStruct.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 modelStruct Object 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.modelStruct {nlme}"><tr><td>coef.modelStruct {nlme}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Extract modelStruct Object Coefficients</h2> <h3>Description</h3> <p>This method function extracts the coefficients associated with each component of the <code>modelStruct</code> list. </p> <h3>Usage</h3> <pre> ## S3 method for class 'modelStruct' coef(object, unconstrained, ...) ## S3 replacement method for class 'modelStruct' coef(object, ...) <- value </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>object</code></td> <td> <p>an object inheriting from class <code>"modelStruct"</code>, representing a list of model components, such as <code>"<a href="corClasses.html">corStruct</a>"</code> and <code>"<a href="varFunc.html">varFunc</a>"</code> objects.</p> </td></tr> <tr valign="top"><td><code>unconstrained</code></td> <td> <p>a logical value. If <code>TRUE</code> the coefficients are returned in unconstrained form (the same used in the optimization algorithm). If <code>FALSE</code> the coefficients are returned in "natural", possibly constrained, form. Defaults to <code>TRUE</code>.</p> </td></tr> <tr valign="top"><td><code>value</code></td> <td> <p>a vector with the replacement values for the coefficients associated with <code>object</code>. It must be a vector with the same length of <code>coef{object}</code> and must be given in unconstrained form.</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 vector with all coefficients corresponding to the components of <code>object</code>. </p> <h3>SIDE EFFECTS</h3> <p>On the left side of an assignment, sets the values of the coefficients of <code>object</code> to <code>value</code>. <code>Object</code> must be initialized (using <code>Initialize</code>) before new values can be assigned to its coefficients. </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>See Also</h3> <p><code><a href="Initialize.html">Initialize</a></code></p> <h3>Examples</h3> <pre> lms1 <- lmeStruct(reStruct = reStruct(pdDiag(diag(2), ~age)), corStruct = corAR1(0.3)) coef(lms1) </pre> <hr /><div style="text-align: center;">[Package <em>nlme</em> version 3.1-139 <a href="00Index.html">Index</a>]</div> </body></html>