Fit a full second-order model

Description

This function fits an ordinary LS regression of a response on a full second order model, or returns the residuals from such a fit. Used in the phdq method in dr.

Usage

fullquad.fit(x, y, w, ...)
fullquad.residuals(...)

Arguments

x an n by p matrix of predictors
y an n vector of the response
w an n vector of positive weights or NULL
... arguments passed to lm

Value

fullquad.fit returns an object of type lm. fullquad.residuals returns a vector of n residuals.

Author(s)

Sanford Weisberg <sandy@stat.umn.edu>


[Package Contents]