Selects a random subset of columns within each block of the input data matrix.
compute_subsample(data, block_ind, n, sample_size = 1, seed = NULL)A list with two elements:
A numeric matrix combining the sampled columns from all blocks.
An integer vector containing the indices corresponding to the sampled data.
A numeric matrix or data frame containing the original data.
Integer vector specifying the end indices of each block. If NULL, assumes a single block spanning all columns.
Integer specifying the number of blocks.
Numeric between 0 and 1 specifying the proportion of columns to sample within each block. Defaults to 1 (all columns).
Optional integer. Seed for reproducibility of the column sampling. If NULL, sampling is random.