dr.x returns the matrix of data constructed from the formula for a dimension reduction regression. dr.y returns the response.
dr.x(object) dr.y(object) dr.z(x,weights=NULL,center=TRUE,rotate=TRUE,decomp="svd")
object |
An dimension reduction regression object |
x |
a matrix to be centered and scaled OR a dimension reduction object from which the model matrix will be extracted |
weights |
a vector of weights, or NULL if unweighted |
center |
if TRUE, center the output |
rotate |
if TRUE, multiply by the inverse square root of the sample covariance matrix. |
decomp |
Decomposition to be used in computing the rotation; the default is "svd". |
dr.x returns an n by p matrix of terms, excluding the intercept, constructed from the dimension reduction regression object. dr.y returns the response. dr.z returns a possibly centered and scaled version of x.
Sanford Weisberg, <sandy@stat.umn.edu>
dr
data(ais) attach(ais) m1 <- dr(LBM~Ht+Wt+RCC+WCC) dr.x(m1) dr.y(m1)