Description Usage Arguments Value Author(s) Examples

Apply K-fold cross-validation (CV) to select tuning parameters for regualrized covariance matrix with banding, tapering, soft-thresholding or hard-thresholding method under the Frobenius norm or the operator norm. Two versions of K-fold CV are applied: 1) the regular one, K-1 folds are used to train and 1 fold is used to validate; 2) the reverse one, 1 fold is used to train and K-1 folds are used to validate.

1 | ```
regular.CV(X, k.grid = 0.5, method = "Tapering", fold = 5, norm = "F", seed=10323)
``` |

`X` |
input data matrix with dimension |

`k.grid` |
the default value is 0.5. |

`method` |
the regularized method, which can be "Banding", "Tapering", "HardThresholding" or "SoftThresholding". the default value is "Tapering". |

`fold` |
the number of folds in K-fold CV. integers only. the default number is 5. |

`norm` |
the norms which can be used to measure the estimation accuracy, which can be the Frobenius norm "F" or the operator norm "L2". |

`seed` |
the default value is 10323. |

A list including elements:

`CV.k ` |
a 2-dimensional vector denoting the optimal tuning parameters selected by K-fold CV with its first component as the one from regular version and its second component as the one from the reverse version. |

`k.grid ` |
the vector of tuning parameters |

`CV.pre.error` |
a matrix with two columns denoting predicting errors by K-fold CV at each element of tuning parameters based on the selected norm with its first column demoting the values from regular version and the second column denoting the values from the reverse version. The number of rows equals the length of the vector for tuning parameters. |

Binhuan Wang

1 2 3 4 5 6 7 8 9 |

CVTuningCov documentation built on May 29, 2017, 9:07 p.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.