Description Usage Arguments Value Examples
Selects binary structure for SLIDE model using bi-cross-validation based on the supplied set of candidate structures
1 2 3 4 5 6 7 8 9 10 |
X |
A n x p concatenated data matrix of views X_1,...,X_d. |
pvec |
A vector of values p_1,....,p_d corresponding to the number of measurements within each data view. |
structure_list |
A list of distinct binary structures which forms a candidate set for SLIDE model. |
n_fold |
A number of folds for rows, the default value is 3. |
p_fold |
A number of folds for columns, the default value is 3. |
k_max |
A maximal number of allowed iterations for SLIDE model fitting, the default value is 1000. |
eps |
A convergence tolerance criterion, the default value is 1e-6. |
center |
A logical indicator of whether the data is centered, the default value is TRUE. |
A list with the elements
structure_list |
A list of candidate structures, same as the input |
structure_min |
A binary matrix corresponding to the structure with minimal error across the folds. |
error_mean |
Total error values across the folds for each structure from the list. |
error |
Matrix of error values for each fold and each structure. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | n = 100
p1 = 25
p2 = 25
data = generateModel1(n = n, pvec = c(p1, p2))
# Standardize the data
out = standardizeX(data$X, pvec = c(p1,p2))
# Create a list of candidate structures
out_struct <- create_structure_list(out$X, data$pvec, lambda_max = max(out$svec),
standardized = TRUE)
# Select a structure from the list using bcv procedure
out_bcv <- slide_BCV(out$X, data$pvec, structure_list = out_struct$Slist)
out_bcv$structure_min
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.