randomize | R Documentation |
randomize
permutates independently the entries in
each column of a matrix-like object, to produce random
data that can be used in permutation tests or bootstrap
analysis.
randomize(x, ...)
x |
data to be permutated. It must be an object
suitable to be passed to the function
|
... |
extra arguments passed to the function
|
In the context of NMF, it may be used to generate random data, whose factorization serves as a reference for selecting a factorization rank, that does not overfit the data.
a matrix
x <- matrix(1:32, 4, 8)
randomize(x)
randomize(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.