divide_samples {SUMO}R Documentation

Global Variable

Description

A global variable used in multiple functions.

Usage

divide_samples(n_samples, num, min_size)

Arguments

n_samples

number of samples

num

number of factors

min_size

Minimum length of any samples scores

Value

A list of numeric vectors. If num == 1, the list contains a single vector representing a random selection of between 10% and 55% of the elements from the full dataset. If num > 1, the list contains num vectors, each representing 75% of the elements from one of the num segments of the dataset. The segmentation ensures that all segments are at least the size of min_size. If the segment sizes are too small, the function retries the segmentation process.


[Package SUMO version 0.1.0 Index]