discursive_combine {discursive}R Documentation

Combine three components of discursive sophistication in a single scale

Description

This function combines the size, range, and constraint of open-ended responses in a single scale. See Kraft (2023) for details.

Usage

discursive_combine(
  size,
  range,
  constraint,
  type = c("scale", "average", "average_scale", "product")
)

Arguments

size

A named list containing an element labeled size, which itself consists of a numeric vector containing the size component of discursive sophistication. Usually created via discursive_size().

range

A numeric vector containing the range component of discursive sophistication. Usually created via discursive_range().

constraint

A numeric vector containing the constraint component of discursive sophistication. Usually created via discursive_constraint().

type

The method of combining the three components, must be "scale", "average", "average_scale", or "product". The default is "scale", which creates an additive index that is re-scaled to mean 0 and standard deviation 1. Alternatively, "average" creates the same additive index without re-scaling; "average_scale" re-scales each individual component to mean 0 and standard deviation 1 before creating the additive index; "product" creates a multiplicative index.

Value

A numeric vector with the same length as the number of rows in data.

Examples

discursive_combine(size = list(size = runif(100)), range = runif(100), constraint = runif(100))

[Package discursive version 0.1.1 Index]