Description Usage Arguments Value Examples
This function removes zero columns if thre are more than two rows in H_star
and if H_star_redun
is not trivially all zero
1 | merge_H_col(H_star_redun, VERBOSE = FALSE)
|
H_star_redun |
A binary matrix of rows |
VERBOSE |
Default to |
a list of one element named H_star_merge
1 2 3 4 5 6 7 8 9 10 11 12 | # the third latent state is inactive among non-empty pseudo-clusters;
# the 2nd and 4th latent states are partners.
# merge 1 and 2 pseudo-clusters.
H_star_redun <- matrix(c(0,1,0,1,
0,1,0,1,
1,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0),nrow=7,ncol=4,byrow=TRUE)
Q <- simulate_Q(4,100,p=0.1)
merge_H_col(H_star_redun,TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.