View source: R/semiregSingleIndex.R
sinvreg | R Documentation |
‘sinvreg’ is used in the examples for the semimrFull
and semimrOne
functions to obtain
initial values based on sliced inverse regression (Li, 1991).
sinvreg(x, y, nslice = NULL)
x |
an n by p matrix of observations where n is the number of observations and p is the number of explanatory variables. |
y |
an n-dimentionsl vector of response values. |
nslice |
number of slices. Default is 10. |
A list containing the following elements:
direction |
direction vector. |
reducedx |
reduced x. |
eigenvalue |
eigenvalues for reduced x. |
nobs |
number of observations within each slice. |
Li, K. C. (1991). Sliced inverse regression for dimension reduction. Journal of the American Statistical Association, 86(414), 316-327.
semimrFull
, semimrOne
# See examples for the 'semimrFull' function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.