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 |

```
Loading required package: MASS
Loading required package: glmnet
Loading required package: Matrix
Loading required package: foreach
Loaded glmnet 2.0-12
Loading required package: ppls
Loading required package: splines
Loading required package: Epi
Attaching package: 'Epi'
The following object is masked from 'package:base':
merge.data.frame
Loading required package: GeneNet
Loading required package: corpcor
Loading required package: longitudinal
Loading required package: fdrtool
```

parcor documentation built on May 29, 2017, 11:54 a.m.

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.