semi.phd {hierSDR} | R Documentation |
Semiparametric PHD SDR fitting function
Description
fits semiparametric SDR models (PHD approach)
Usage
semi.phd(
x,
y,
d = 5L,
maxit = 100L,
h = NULL,
opt.method = c("lbfgs.x", "bfgs", "lbfgs2", "bfgs.x", "lbfgs", "spg", "ucminf", "CG",
"nlm", "nlminb", "newuoa"),
nn = 0.95,
init.method = c("random", "phd"),
optimize.nn = FALSE,
verbose = TRUE,
n.samples = 100,
degree = 2,
vic = TRUE,
...
)
Arguments
x |
an n x p matrix of covariates, where each row is an observation and each column is a predictor |
y |
vector of responses of length n |
d |
an integer representing the structural dimension |
maxit |
maximum number of iterations |
h |
bandwidth parameter. By default, a reasonable choice is selected automatically |
opt.method |
optimization method to use. Available choices are
|
nn |
nearest neighbor parameter for |
init.method |
method for parameter initialization. Either |
optimize.nn |
should |
verbose |
should results be printed along the way? |
n.samples |
number of samples for the random initialization method |
degree |
degree of kernel to use |
vic |
logical value of whether or not to compute the VIC criterion for dimension determination |
... |
extra arguments passed to |
Value
A list with the following elements
beta estimated sufficient dimension reduction matrix
beta.init initial sufficient dimension reduction matrix – do not use, just for the sake of comparisons
cov variance covariance matric for the covariates
sqrt.inv.cov inverse square root of the variance covariance matrix for the covariates. Used for scaling
solver.obj object returned by the solver/optimization function
vic the penalized VIC value. This is used for dimension selection, with dimension chosen to minimize this penalized vic value that trades off model complexity and model fit