On this page
reStruct
Random Effects Structure
Description
This function is a constructor for the reStruct
class, representing a random effects structure and consisting of a list of pdMat
objects, plus a settings
attribute containing information for the optimization algorithm used to fit the associated mixed-effects model.
Usage
reStruct(object, pdClass, REML, data)
## S3 method for class 'reStruct'
print(x, sigma, reEstimates, verbose, ...)
Arguments
object |
any of the following: (i) a one-sided formula of the form |
pdClass |
an optional character string with the name of the |
REML |
an optional logical value. If |
data |
an optional data frame in which to evaluate the variables used in the random effects formulas in |
x |
an object inheriting from class |
sigma |
an optional numeric value used as a multiplier for the square-root factors of the |
reEstimates |
an optional list with the random effects estimates for each level of grouping. Only used when |
verbose |
an optional logical value determining if the random effects estimates should be printed. Defaults to |
... |
Optional arguments can be given to other methods for this generic. None are used in this method. |
Value
an object inheriting from class reStruct
, representing a random effects structure.
Author(s)
José Pinheiro and Douglas Bates bates@stat.wisc.edu
See Also
groupedData
, lme
, pdMat
, solve.reStruct
, summary.reStruct
, update.reStruct
Examples
rs1 <- reStruct(list(Dog = ~day, Side = ~1), data = Pixel)
rs1
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.