tauUp_Q: Construct initial tau from Q-1

Description Usage Arguments Value Examples

View source: R/initialization.R

Description

Construct initial τ with Q groups from value obtained at Q-1 groups

Usage

1
tauUp_Q(tau, n_perturb = 1)

Arguments

tau

τ

n_perturb

Number of different perturbations on k-means result

Value

List of matrixes of initial values for τ for Q groups from value obtained at Q-1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Generate first initial tau for generated_Q3 data

n <- 50
Dmax <- 2^3
Q <- 3
d_part <- 1 # less than 3 (owing to Dmax)
n_perturb <- 2
perc_perturb <- 0.2
n_random <- 1
directed <- FALSE

data <- list(Nijk = statistics(generated_Q3$data, n, Dmax, directed = FALSE))

tau <- tauInitial(data,n,Q,d_part,n_perturb,perc_perturb,n_random,directed)

tau.list <- tauUp_Q(tau[[1]],1)

ppsbm documentation built on May 1, 2019, 11:26 p.m.