Description Usage Arguments Value References Examples
Elasticnet with interactions (glmnet)
1 2 | xyz_regression(X, Y, lambdas = NULL, n_lambda = 10, alpha = 0.9, L = 10,
standardize = TRUE, standardize_response = TRUE)
|
X |
A matrix. |
Y |
A vector. |
lambdas |
A vector of decreasing real numbers containing user specified values of lambda. |
n_lambda |
A natural number indicating how long the path of lambdas should be. |
alpha |
A real number between 0 and 1 (the elastic net parameter) |
L |
An integer indicating how many projection steps are performed. |
standardize |
A boolean indicating if X should be scaled and centered. |
standardize_response |
A boolean indicating if Y should be scaled and centered. |
N
strongest interactions (of type type
) between X
and Y
after L
projections.
G. Thanei, N. Meinshausen and R. Shah (2016). The xyz algorithm for fast interaction search in high-dimensional data. <https://arxiv.org/pdf/1610.05108v1.pdf>
1 2 3 4 5 6 7 8 9 10 11 |
Lambda sequence:
lambda1=0.75502
lambda2=0.58458
lambda3=0.45262
lambda4=0.35045
lambda5=0.27134
lambda6=0.21009
lambda7=0.16266
lambda8=0.12594
lambda9=0.09751
lambda10=0.0755
Discovered main effects: 1 Discovered interaction effects: 1
Model parameters:
intercept: -2.422749e-17
Printing effects for lambda10=0.0755
Main effects:
Main effect: 4 coefficient: -0.665061
Interaction effect:
Interaction effect: (1,2) coefficient: 0.5618248
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.