Learn R Programming

MAMA (version 2.2.1)

preparePermutations: Function to prepare permutation and subsamples

Description

Function prepares permutations of class labels and subsamples from expression data

Usage

preparePermutations(id, B, sample.ratio = 0.8)

Arguments

id
Binary vector (0's and 1's) of class labels to be permuted and subsampled
B
number of premutations
sample.ratio
ratio for subsampling, default 0.8 means 80% of samples from each group is selected

Value

A list
yperm
Permutation - vectors of 0's and 1's shuffeled
ysubs
Subsamples - numeric vectors indicating which samples should be selected