Description Usage Arguments Details Value
View source: R/ezpermutations.R
Resample unique sample or group labels (unique elements of xx
) into nperm
data frame columns of length
length(xx)
for permutation testing. The columns are not duplicates of each other,
do not contain xx
, and have each element of unique(xx)
to appear at least once.
Calculations are done with RcppAlgos.
1 | ezpermutations(xx, nperm, freq = length(xx) - length(unique(xx)) + 1)
|
xx |
Vector of labels or indices to resample. Must be of length at least 2. |
nperm |
Number of resamples to return. |
freq |
Integer number of times to repeat each element of |
Number of returned resamples may be less than nperm
if not enough unique resamples are available.
Data frame whose columns are same type as xx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.