Description Usage Arguments Details Value References See Also Examples
Fitting the weighted orthoginal components regression (WOCR) models
1 2 3 |
formula |
An object of class |
data |
A data.frame in which to interpret the variables named in the |
scale |
Logical indicator of whether you want to scale the data. Here, |
model |
Specifies the WOCR model to be fitted. Six choices are possible: |
a |
The fixed shape parameter a in models |
criterion |
Specifies the information criterion to be minimized. The appropriate choice is one from |
use.GenSA |
Logical value indicating if the generalized simulated annealing |
maxit.global |
Maximum number of iterations allowed for the global optimization algorithm, which is either |
LB |
The lower bounds for the search space in |
UB |
The upper bounds for the search space in |
details |
Logical value: if |
epsilon |
Tolerance level for convergence. Default is 1e-6. |
maxit.local |
Maximum number of iterations allowed for the local optimizaiton algorithm |
The main idea of WOCR is to parameterize the weights for orthogonal components with a simple function whose specification is up to one or two tuning parameters. The weighting strategy takes advantage of the inherent monotonicity among these orthogonal components.
To solve the 2-D smooth yet nonconvex optimization, two options are made available. The first is a simulated annealing (method="SANN"
option
in optim
) global optimization algorithm is first applied. The resultant estimator is then used
as the starting point for another local optimization algorithm, where the quasi-Newton BFGS method (method="BFGS"
in optim
) by default. Optionally, the generalized simulated annealing, implemented in GenSA
,
can be used instead. This latter approach tends to be slower. However, it does not need to be combined with another local optimization;
besides, it often yields the same final solution with different runs. Thus, when use.GenSA=TRUE
,
the output includes opt.global
only, without opt.local
.
An object of class WOCR
is returned, which may contain the following components depending on the options.
the matched call.
Results from the preliminary run of a global optimization procedure (SANN
as default or GenSA
).
Results from the final optimization procedure. This could be the results from the 1-D optimization optimize
or from the second run of the local optimizaiton BFGS
.
The rank of the design matrix X.
The vector of singular values.
The vector of coefficients, consisting of the inner product of each orthogonal component and the repsonse y.
The formula
used in fitting WOCR. A copy of formula
will be useful for prediction later on.
Mean value of the response y.
Mean vector of columns of matrix X.
Vector of standard deviations for each X variables or columns.
Value of the minimized objective function.
The 1-D or 2-D estimated tuning parameter(s).
The coefficients for the standardized X variables, instead of the orthogonal components.
The estimated weights.
The selected number of components for WOCR models PCR.d.c
and PCR.gamma.c
only.
The fitted value for the response. The mean response is added back. So y.hat
can be compared directly to the response y.
Su, X., Wonkye, Y., Wang, P., and Yin, X. (2016+). Weighted orthogonal component regression (WOCR). Submitted.
1 2 3 4 | data(BostonHousing1)
fit.wocr <- WOCR(formula=cmedv~., data=BostonHousing1, model="RR.d.lambda")
print(fit.wocr)
plot(fit.wocr, horizontal=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.