sealasso | R Documentation |

This provides the solution path of some variants of the adaptive lasso (e.g. SEA-lasso, NSEA-lasso, OLS-adaptive lasso), and the corresponding optimal model selected by BIC criterion.

sealasso(x, y, method = c("nsealasso", "sealasso", "olsalasso", "lasso"))

`x` |
The model matrix. |

`y` |
The response. |

`method` |
One of "nsealasso", "sealasso", "olsalasso" and "lasso", which represent NSEA-lasso, SEA-lasso, OLS-adaptive lasso and the lasso, respectively. The default is "nsealasso". |

SEA-lasso and NSEA-lasso (Qian and Yang, 2010) are two versions of the adaptive lasso. They may be used for variable selection, especially in cases where condition index of the scaled model matrix is large (e.g. > 10) and collinearity is a concern. This function provides condition index, solution path and the suggested optimal model based on BIC. The estimated coefficients are also given for transition points of the path.

`method` |
The method used. |

`condition.index` |
Condition index of the scaled model matrix. |

`path` |
Solution path and corresponding BIC values at transition points. |

`beta` |
The estimated coefficients at transition points of solution path. |

`optim.beta` |
The estimated coefficients of the optimal model based on BIC criterion. |

Qian, W. and Yang, Y. (2010) "Model Selection via Standard Error Adjusted Adaptive Lasso." Technical Report, University of Minnesota.

# use the diabetes dataset from "lars" package data(diabetes) x <- diabetes$x y <- diabetes$y sealasso(x, y) # with quadratic terms x2 <- cbind(diabetes$x1,diabetes$x2) object <- sealasso(x2, y, "sealasso") object$condition.index object$optim.beta

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.