permute_design {seqgendiff} | R Documentation |
Permute the design matrix so that it is approximately correlated with the surrogate variables.
Description
Permute the design matrix so that it is approximately correlated with the surrogate variables.
Usage
permute_design(
design_perm,
sv,
target_cor,
method = c("hungarian", "marriage")
)
Arguments
design_perm |
A numeric design matrix whose rows are to be permuted (thus controlling the amount by which they are correlated with the surrogate variables). The rows index the samples and the columns index the variables. The intercept should not be included (though see Section "Unestimable Components"). |
sv |
A matrix of surrogate variables |
target_cor |
A numeric matrix of target correlations between the
variables in |
method |
Should we use the Gale-Shapley algorithm
for stable marriages ( |
Value
A list with two elements:
design_perm
A row-permuted version of the user-provided
design_perm
.latent_var
A matrix of the latent variables on which
design_perm
was matched.
Author(s)
David Gerard
References
Gale, David, and Lloyd S. Shapley. "College admissions and the stability of marriage." The American Mathematical Monthly 69, no. 1 (1962): 9-15. doi:10.1080/00029890.1962.11989827.
C. Papadimitriou and K. Steiglitz (1982), Combinatorial Optimization: Algorithms and Complexity. Englewood Cliffs: Prentice Hall.
Hornik K (2005). "A CLUE for CLUster Ensembles." Journal of Statistical Software, 14(12). doi:10.18637/jss.v014.i12. doi:10.18637/jss.v014.i12.