pairwise_clus: Create posterior similarity matrix from outputted list of...

Description Usage Arguments Value Examples

Description

Create posterior similarity matrix from outputted list of clustering samples

Usage

1
pairwise_clus(clus_save, BURNIN = 2000)

Arguments

clus_save

list of samples outputted from TWLsample function.

BURNIN

number of samples devoted to burn-in. Defaults to 2000.

Value

outpu a list whose length is the number of datasets being integrated, and each elemnt of which is a posterior similarity matrix. The dimension of each symmetric matrix is the number of samples in the respective dataset, and elements in the matrix are values between 0 and 1, and estimate of the probability 2 samples find themselves in the same clustering.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(data_and_output)
## Not run: clus_save <- TWLsample(misaligned_mat,misaligned,output_every=50,num_its=5000,manip=FALSE)
outpu_new <- pairwise_clus(clus_save,BURNIN=2000)
post_analy_cor(outpu_new,c("title1","title2","title3","title4","title5"),
tempfile(),ords='none') 
clus_labs <- post_analy_clus(outpu_new,clus_save,c(2:6),rep(0.6,5),c("title1","title2",
"title3","title4","title5"),tempfile())
output_nest <- cross_dat_analy(clus_save,4750)

## End(Not run)

twl documentation built on May 2, 2019, 4:01 p.m.