Learn R Programming

QCA (version 1.0-5)

findTh: Find Calibration Thresholds

Description

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, see ?cutree.
hclustm
The agglomeration (clustering) method to be used, see ?hclust.
distm
The distance measure to be used, see ?dist.

Value

  • A numeric vector of suggested threshold(s) for dividing base variables into the desired number of groups.

See Also

cutree, hclust, dist

Examples

Run this code
# 15 random values between 1 and 100 
x <- sample(1:100, size = 15)

# split into 2 groups for csQCA
findTh(x)

# split into 3 groups for mvQCA
findTh(x, groups = 3)

Run the code above in your browser using DataLab