lundi 17 septembre 2018

Generate multiple permutations in R

I have a data frame for which I want to shuffle the values in one column only, 1000 times while keeping the values in the rest of columns intact for random permutation test for a random forest classification. While I know how to generate 1 permutation using the sample in the base package, how do I obtain 1000 at once? Below is a screenshot of how the data looks like (it has approx 50k rows and 28 variables). enter image description here




Aucun commentaire:

Enregistrer un commentaire