# Ridge Regression.

### Description

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

### Usage

1 |

### Arguments

`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 |

### Value

`intercept` |
cross-validation optimal intercept |

`coefficients` |
cross-validation optimal regression coefficients |

`lambda.opt` |
optimal value of |

### Author(s)

Nicole Kraemer

### See Also

`ridge.net`

### Examples

1 2 3 4 5 |