Values are generated with variance equal to 1/weight. This can be used to see what R-squared would be achieved with purely random data, and therefore an appropriate number of components to use. This is known as Parallel Analysis.

weitrix_randomize(weitrix)

Arguments

weitrix

A weitrix object, or an object that can be converted to a weitrix with as_weitrix.

Value

A SummarizedExperiment object with metadata fields marking it as a weitrix.

See also

Examples

weitrix_randomize(simwei)
#> class: SummarizedExperiment #> dim: 7 5 #> metadata(1): weitrix #> assays(2): x weights #> rownames(7): 1 2 ... 6 7 #> rowData names(0): #> colnames(5): 1 2 3 4 5 #> colData names(1): true_score