Learn R Programming

monoClust (version 1.2.1)

test_split: Hypothesis Test at Split

Description

Hypothesis Test at Split

Usage

test_split(members_l, members_r, method, data, split_var, rep, stat, ncores)

Arguments

members_l, members_r

Vector of the index of observations that are members of the left child node and the right child node, respectively.

method

Can be chosen between sw (simple-withhold, default), rl (resplit-limit), or rn (resplit-nolimit). See Details.

data

The data set which is being clustered.

split_var

Splitting variable at current split.

rep

Number of permutations required to calculate test statistic.

stat

Statistic to use. Choosing between "f" (Calinski-Harabasz's pseudo-F (Calinski and Harabasz, 1974)) or "aw" (Average silhoutte width by Rousseeuw (1987)).

ncores

Number of CPU cores on the current host. When set to NULL, all available cores are used.

Value

p-value of the test