wr {rmutil}R Documentation

Find the response vector and design matrix for a model formula

Description

wr gives the response vector and design matrix for a formula in Wilkinson and Rogers notation.

Usage

wr(formula)

Arguments

formula A model formula.

Value

wr returns a list containing the response vector (z$response) and the design matrix (z$design) for the formula supplied. e

Author(s)

J.K. Lindsey

Examples

y <- rnorm(20)
x <- gl(4,5)
z <- rpois(20,2)
wr(y~x+z)

[Package Contents]