View source: R/mldfm_subsampling.R
mldfm_subsampling | R Documentation |
Repeatedly applies the MLDFM estimation to randomly drawn subsamples of the input data.
mldfm_subsampling(
data,
blocks = 1,
block_ind = NULL,
global = 1,
local = NULL,
middle_layer = NULL,
method = 0,
tol = 1e-06,
max_iter = 1000,
n_samples = 10,
sample_size = 0.9,
seed = NULL
)
data |
A numeric matrix or data frame containing the time series data. Rows represent time points; columns represent observed variables. |
blocks |
Integer. The number of blocks into which the data is divided. |
block_ind |
A vector of integers indicating the end index of each block. Must be of length |
global |
Integer. Number of global factors extracted from the entire dataset. |
local |
Integer vector of length |
middle_layer |
Named list. Each name is a string specifying a group of blocks (e.g., |
method |
Integer. The method used to initialize the factors: |
tol |
Numeric. The tolerance level for the residual sum of squares (RSS) minimization process. Used as a convergence criterion. |
max_iter |
Integer. The maximum number of iterations allowed for the RSS minimization process. |
n_samples |
Number of subsamples to generate. |
sample_size |
Proportion of the original sample to retain (e.g., 0.9 for 90%). |
seed |
Optional integer. Seed for reproducibility of the subsampling process. If |
A list of mldfm
objects, one for each subsample.
data <- matrix(rnorm(1000), nrow = 100, ncol = 100)
block_ind <- c(50,100) # Defines 3 blocks
local <- c(1, 1)
result <- mldfm_subsampling(data, blocks = 2, block_ind = block_ind, global = 1,
local = local, n_samples = 100, sample_size = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.