formula.reStruct function

Extract reStruct Object Formula

Extract reStruct Object Formula

This method function extracts a formula from each of the components of x, returning a list of formulas.

## S3 method for class 'reStruct' formula(x, asList, ...)

Arguments

  • x: an object inheriting from class "reStruct", representing a random effects structure and consisting of a list of pdMat objects.
  • asList: logical. Should the asList argument be applied to each of the components?
  • ...: some methods for this generic require additional arguments. None are used in this method.

Returns

a list with the formulas of each component of x.

Author(s)

José Pinheiro and Douglas Bates bates@stat.wisc.edu

See Also

formula

Examples

rs1 <- reStruct(list(A = pdDiag(diag(2), ~age), B = ~1)) formula(rs1)
  • Maintainer: R Core Team
  • License: GPL (>= 2)
  • Last published: 2025-03-31