formula.pdBlocked | R Documentation |
The formula
attributes of the pdMat
elements of
x
are extracted and returned as a list, in case
asList=TRUE
, or converted to a single one-sided formula when
asList=FALSE
. If the pdMat
elements do not have a
formula
attribute, a NULL
value is returned.
## S3 method for class 'pdBlocked'
formula(x, asList, ...)
x |
an object inheriting from class |
asList |
an optional logical value. If |
... |
some methods for this generic require additional arguments. None are used in this method. |
a list of one-sided formulas, or a single one-sided formula, or
NULL
.
José Pinheiro and Douglas Bates bates@stat.wisc.edu
pdBlocked
, pdMat
pd1 <- pdBlocked(list(~ age, ~ Sex - 1))
formula(pd1)
formula(pd1, asList = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.