sir | R Documentation |
This conducts a sliced inverse regression as in Li (2018) with modifications to improve speed and to allow for the option of standardizing and regularizing
sir(x, y, nslices, d, ytype, lambda = 0)
x |
a 'n x p' matrix of predictors; n sample size, p dimension |
y |
a scalar response |
nslices |
specify the number of slices to conduct; |
d |
specify the reduced dimension |
ytype |
specify the response as 'continuous' or 'categorical' |
lambda |
a L2 or Tikonov regularizer for the sample covariance matrix; default is '0', i.e. no regularization |
Standardizing is the default as it is necessary for recovering the properly scaled central subspace. However, in certain contexts, the standardization is not necessary, and so we leave this option open to the practitioner.
The L2-regularization option corresponds to the SIR regularization idea by Zhang et al.(2005).
A list containing both the estimate and candidate matrix.
beta - A 'pxd' matrix that estimates a basis for the central subspace.
cand_mat - The candidate matrix for SIR; this is used in other functions for order determination.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.