Learn R Programming

dr (version 1.0.2)

dr.x: Inverse regression term matrix

Description

dr.x returns the matrix of data constructed from the formula for a dimension reduction regression. dr.y returns the response.

Usage

dr.x(object)
dr.y(object)
dr.z(x,weights=NULL,center=TRUE,rotate=TRUE,decomp="svd")

Arguments

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".

Value

  • dr.x returns an $n \times 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.

See Also

dr

Examples

Run this code
data(ais)
attach(ais)
m1 <- dr(LBM~Ht+Wt+RCC+WCC)
dr.x(m1)
dr.y(m1)

Run the code above in your browser using DataLab