partition_div: Diversity of cases belonging to the same partition of the...

Description Usage Arguments Value Examples

View source: R/partition_div.R

Description

partition_div calculates the diversity of cases that belong to the same partition of the clustered data (a time series; a cross section; etc.). Diversity is measured by the number of truth table rows that the cases of a partition cover. partition_div calculates the partition diversity for all truth table rows and for the subsets of consistent and inconsistent rows.

Usage

1
partition_div(dataset, units, time, cond, out, n_cut, incl_cut)

Arguments

dataset

Calibrated pooled dataset that is partitioned and minimized for deriving the pooled solution.

units

Units defining the within-dimension of data (time series)

time

Periods defining the between-dimension of data (cross sections)

cond

Conditions used for the pooled analysis

out

Outcome used for the pooled analysis

n_cut

Frequency cut-off for designating truth table rows as observed in the pooled data

incl_cut

Inclusion cut-off for designating truth table rows as consistent in the pooled data

Value

A dataframe presenting the diversity of cases belonging to the same partition with the following columns:

Examples

1
2
3
4
5
data(Schwarz2016)
Schwarz_diversity <- partition_div(Schwarz2016, 
units = "country", time = "year", 
cond = c("poltrans", "ecotrans", "reform", "conflict", "attention"), 
out = "enlarge", 1, 0.8)

QCAcluster documentation built on Oct. 26, 2021, 5:06 p.m.