Description Usage Arguments Value References Examples
View source: R/mv_memberships_gen.R
Generates subgroup membership pairs (Z1, Z2) for a multi-view data set with n observations and two views.
1 | mv_memberships_gen(n, Pi)
|
n |
number of observations |
Pi |
K1 x K2 matrix where the (k, k')th entry contains the probability of an observation belonging to subgroup k in View 1 and subgroup k' in View 2 |
n x 2 matrix where the first column contains subgroup memberships for View 1 (Z1) and the second column contains subgroup memberships for View 2 (Z2).
Gao, L.L., Bien, J., Witten, D. (2019) Are Clusterings of Multiple Data Views Independent? to appear in Biostatistics, <DOI:10.1093/biostatistics/kxz001>
Gao, L.L., Witten, D., Bien, J. Testing for Association in Multi-View Network Data, preprint.
1 2 3 | Pi <- tcrossprod(c(0.5, 0.5), c(0.25, 0.25, 0.5))
n <- 25
mv_memberships_gen(n, Pi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.