Description Usage Arguments Value

Make multiple samples of data

`cross_fold`

: Make 'folds' samples of the data, so `all(rbind(folds)==row.names(data))=TRUE`

`random`

: Makes `iterations`

random samples of size `holdout * nrow(data)`

1 2 3 4 5 | ```
multisample.cross_fold(data, folds = 10, dependent,
preserve_distribution = FALSE)
multisample.random(data, holdout = 0.2, iterations = 10, dependent,
preserve_distribution = FALSE)
``` |

`data` |
Data to sample |

`folds` |
Number of folds to create |

`dependent` |
The dependent variable in the data. Used only if |

`preserve_distribution` |
Logical, only applicable if the dependent variable is a factor |

`holdout` |
The fraction of data to be used as holdout set |

`iterations` |
Number of iterations to make |

A list of numeric vectors of length 'folds'

crtests documentation built on May 19, 2017, 9:21 a.m.

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

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

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

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.