sdr(X, covariates, method = c("DR", "NNIR", "SAVE", "SIR", "TSE"), Dim1 = 1, Dim2 = 1, predict=FALSE)"ppp").
"im")
to serve as predictor variables.
method is "DR", "NNIR",
"SAVE" or "TSE").
method="TSE").
B, M
or B, M1, M2 where
B is a matrix whose columns are estimates of the basis vectors
for the space, and M or M1,M2 are matrices containing
estimates of the kernel.If predict=TRUE, the result also includes a component
Y which is a list of pixel images giving the values of the
new predictors.
Available methods are:
method="DR" |
| directional regression |
method="NNIR" |
| nearest neighbour inverse regression |
method="SAVE" & sliced average variance estimation |
method="SIR" & sliced inverse regression |
method="TSE" & two-step estimation |
The result includes a matrix B whose columns are estimates
of the basis vectors of the space of new predictors. That is,
the jth column of B expresses the jth new
predictor as a linear combination of the original predictors.
If predict=TRUE, the new predictors are also evaluated.
They can also be evaluated using sdrPredict.
sdrPredict to compute the new predictors from the
coefficient matrix.
dimhat to estimate the subspace dimension. A <- sdr(bei, bei.extra, predict=TRUE)
A
Y1 <- A$Y[[1]]
plot(Y1)
points(bei, pch=".", cex=2)
# investigate likely form of dependence
plot(rhohat(bei, Y1))
Run the code above in your browser using DataLab