Description Usage Arguments Value Author(s) Examples

Split a dataset into k parts for k-fold cross-validation. This function is used in
`pact.cv`

to create the splits for cross-validation

1 | ```
KfoldCV(n, k)
``` |

`n` |
The sample size |

`k` |
The number of folds. k=n would mean a leave-one-out cross-validation |

A integer vector of same length as n. Each observation is an integer taking a value between 1 to k denoting the fold it belongs to.

Jyothi Subramanian and Richard Simon

Maintainer: Jyothi Subramanian <[email protected]>

1 2 |

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.