dr.direction(object, which, x)
dr.directions(object, which, x)
"dr.direction"(object, which=NULL,x=dr.x(object))
dr.basis(object,numdir)
"dr.basis"(object,numdir=length(object$result))
ire
, then the directions depend on the value of the
dimension you select. If omitted, select all directions. dr.x(object)
dr.direction
, the matrix has n rows and
numdir columns, and for dr.basis
it has p rows and numdir columns.
dr.basis
and dr.direction
,
return vectors that describe the central subspace in various ways.Consder dr.basis
first. If you set numdir=3
, for example, this
method will return a $p$ by 3 matrix whose columns span the estimated
three dimensional central subspace. For all methods except for ire
,
this simply returns the first three columns of object$evectors
. For
the ire
method, this returns the three vectors determined by a
three-dimensional solution. Call this matrix $C$. The basis is
determined by back-transforming from centered and scaled predictors to
the scale of the original predictors, and then renormalizing the vectors
to have length one. These vectors are orthogonal in the inner
product determined by Var(X).
The dr.direction
method return $XC$, the same space but now a
subspace of the original $n$-dimensional space. These vectors are
appropriate for plotting.
dr
data(ais)
#fit dimension reduction using sir
m1 <- dr(LBM~Wt+Ht+RCC+WCC, method="sir", nslices = 8, data=ais)
summary(m1)
dr.basis(m1)
dr.directions(m1)
Run the code above in your browser using DataLab