Description Usage Arguments Details Value References See Also Examples
LASSO regression of a model with a change point due to a covariate threshold. It obtains regression coefficients for covariates, and a threshold parameter.
1 |
x |
Covariates. |
y |
A dependent variable. |
q |
A threshold covariate. |
s |
The values of lambda(tuning parameter) used for lasso regression. To know what the objective function that is minimized for lasso regression, see the "Details" below. This is not given by default. To get an idea which value to use, check |
trim |
The percentile for trimming the data of a threshold covariate (from above and below) to obtain the range for threshold parameter. By default, it is 0.1. And this results in finding a threshold parameter from 10-90 percentile range of a threshold variable. |
The regression model by this function is
Y = α + X*β + X*δ*I{q<τ} + u
.
The estimated coefficients
by l4acp
contain the estimators for alpha(intercept), beta(coefficients before a change point), and delta(coefficients change after a change point). tau.hat
is the estimator for tau in the model above.
The objective function that is minimized is
(1/n)*RSS + lambda * penalty
, while the penalty is
∑||X(j)||_2 * |β_{j}|_1
.
This is the exact objective function written in Sokbae Lee, Myung Hwan Seo, and Youngki Shin, (2016), which is a little different from that of LARS
or glmnet
packages.
Remember that beta does not contain the estimated intercept.
lambda |
The values of lambda used for regression. Each lambda has corresponding |
tau.hat |
The estimated threshold covariates. |
coefficients |
The regression coefficients for covariates. If the covariates has n different variables, it leads to (2n+2) coefficients. The first (n+1) coefficients can be interpreted as the coefficients when a threshold covariate is below the threshold parameter. It includes an intercept at the head. That's why the number of coefficients is (n+1), not n. And the next (n+1) variables are change of regression coefficients when a threshold covariate exceeds the threshold parameter, also including change of an intercept. |
adj.R2 |
Adjusted R2 square. |
M.alpha |
The number of nonzero coefficients from regression, whose maximum is (2n+2). |
grid.loop |
Used for the threshold grid curve. |
matrix |
A matrix that includes |
Sokbae Lee, Myung Hwan Seo, and Youngki Shin, (2016) The Lasso for High-Dimensional Regression with a Possible Change Point, Journal of the Royal Statistical Society Series B, Vol 78(1), 193-210
plot.l4acp
and cvl4acp
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.