wr(formula)
formula
| A model formula. |
wr
gives the response vector and design matrix for a formula in
Wilkinson and Rogers notation.wr
returns a list containing the response vector (z$response)
and the design matrix (z$design) for the formula supplied.
ey <- rnorm(20) x <- gl(4,5) z <- rpois(20,2) wr(y~x+z)