Description Usage Arguments Value Author(s) See Also Examples

This function computes the optimal ridge regression model based on cross-validation.

1 |

`X` |
matrix of input observations. The rows of |

`y` |
vector of responses. The length of y must equal the number of rows of X |

`lambda` |
Vector of penalty terms. |

`scale` |
Scale the columns of X? Default is scale=TRUE. |

`k` |
Number of splits in |

`plot.it` |
Plot the cross-validation error as a function of |

`intercept` |
cross-validation optimal intercept |

`coefficients` |
cross-validation optimal regression coefficients |

`lambda.opt` |
optimal value of |

Nicole Kraemer

1 2 3 4 5 |

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.