knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(actdata) library(dplyr)
This package makes available tables containing estimates of affect control theory equation coefficients. These coefficients can be used in conjunction with dictionaries to calculate affective responses to various situations. See section 18.2 of David Heise's Expressive Order (2007) for a detailed description of the structure and use of these tables.
Metadata on available equations is in the table below, and can also be printed to the console in R by running eqn_info()
. All of the available equation sets were originally sourced from Interact (version 2.1 beta, accessed May 2021), and component titles are based on labels applied in Interact.
eqn_table <- actdata:::get_meta("eqn") %>% dplyr::select(key, gendercomponents) names(eqn_table) <- c("Equation key", "Components and genders") eqn_table %>% kableExtra::kable() %>% kableExtra::kable_styling()
Data frames of equation coefficients are stored in an object called equations
. To access one, use the get_eqn()
function. This function takes three pieces of metadata and returns the correct data frame of coefficients. These pieces of metadata are:
eqn_info()
.m
, f
, and av
. Call eqn_info()
(optionally, with a specific equation key as an argument) to check which components are specified for which genders. Unlike with dictionary files, where all components within a dictionary are available for the same set of genders, the available genders for equation sets vary by equation type. Interact, from which all of these equation sets were originally taken, provides male and female-labeled sets for each equation. However, sometimes these sets are identical. In this case, this package simply labels the component of the set as av
rather than including it twice. All values are provided exactly as they are in Interact--no post-hoc calculations have been performed.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.