wr | R Documentation |
wr
gives the response vector and design matrix for a formula in
Wilkinson and Rogers notation.
wr(formula, data=NULL, expand=TRUE)
formula |
A model formula. |
data |
A data object or environment. |
expand |
If FALSE, the covariates are read from the |
wr
returns a list containing the response vector
(z$response
), if included in the formula, and the design matrix
(z$design
) from the data object or environment supplied or from
the global environment for the formula supplied.
J.K. Lindsey
y <- rnorm(20) x <- gl(4,5) z <- rpois(20,2) wr(y~x+z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.