This function finds calibration thresholds for splitting base variables into the
desired number of groups using cluster analysis.
Usage
findTh(x, groups = 2, hclustm = "complete", distm = "euclidean")
Arguments
x
An interval or ratio-scaled base variable.
groups
A vector of integers with the desired number of groups.
hclustm
The agglomeration (clustering) method to be used.
distm
The distance measure to be used.
Value
A numeric vector of suggested threshold(s) for dividing base variables
into the desired number of groups.
Details
For more details about argument groups, see ?cutree. For more
details about argument hclustm, see ?hclust. For more details
about argument distm, see ?dist.
# 15 random values between 1 and 100 x <- sample(1:100, size = 15)
# split into two groups for csQCAfindTh(x)
# split into three groups for mvQCAfindTh(x, groups = 3)