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 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.