Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

hclustm

The agglomeration (clustering) method to be used.

distm

The distance measure to be used.

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.

Value

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

Contributors

Dusa, Adrian : programming
Thiem, Alrik : development, documentation, testing

Note

Default values from the hclust method and the dist method are used for both the distance measure distm and the clustering method hclustm.

Author(s)

See Also

Examples

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

# split into two groups for csQCA
findTh(x)

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

QCApro

Advanced Functionality for Performing and Evaluating Qualitative Comparative Analysis

v1.1-2
GPL-3
Authors
Alrik Thiem [aut, cre, cph], Michael Baumgartner [ctb], Adrian Dusa [ctb], Reto Spoehel [ctb]
Initial release
2018-01-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.