augmentation_matrix: Create aggregation matrix and apply different methods

Description Usage Arguments Examples

View source: R/augmentation.R

Description

create_affinity returns an affinity matrix

Usage

1
augmentation_matrix(N, M, n, seed, rep, method, bucket, reg_par, var)

Arguments

N

Aggregation times

M

The number of total sbm results

n

The number of individuals

seed

A vector of the seed you want to set for each aggregation time

rep

The number of repeats for each aggregation time

method

The method, kmeans, hclust or eigensplit

bucket

The bucket where you save the sbm affinity matrix

reg_par

The parameter value of regularization

var

The percentage explaine the variation

Examples

1
aug_result <- augmentation_matrix(20,2000,339,c(1:10),10,c("kmeans","hclust","eigensplit"),"jak2",0.1,0.9)

verasiwei/sbmSC documentation built on Feb. 27, 2020, 2:54 a.m.