Skip to contents

The $add_equation() method allows for the inclusion of further equations.

Adding "emotionid" is needed to use the $characteristic_emotion() method.

Adding "traitid" is needed to use the $modify_identity() method.

Usage

add_equation(
  type = c("emotionid", "traitid"),
  group = c("all", "female", "male")
)

Arguments

type

one of "emotionid" or "traitid"

group

one of "all", "female", or "male"

Examples

act <- interact()
#>  dictionary = list(dataset = "usfullsurveyor2015", group = "all")
#>  equations = list(key = "us2010", group = "all")
act
#> 
#> ── Interact Analysis ───────────────────────────────────────────────────────────
#>  Dictionary: usfullsurveyor2015 (group: all)
#>  Equations: us2010
#>   impressionabo (group: all)

act$add_equation(type = "traitid", group = "all")
#>  traitid = list(key = "us2010", group = "all")
act
#> 
#> ── Interact Analysis ───────────────────────────────────────────────────────────
#>  Dictionary: usfullsurveyor2015 (group: all)
#>  Equations: us2010
#>   impressionabo (group: all)
#>   traitid (group: all)

act$add_equation(type = "emotionid", group = "male")
#>  emotionid = list(key = "us2010", group = "male")
act
#> 
#> ── Interact Analysis ───────────────────────────────────────────────────────────
#>  Dictionary: usfullsurveyor2015 (group: all)
#>  Equations: us2010
#>   impressionabo (group: all)
#>   traitid (group: all)
#>   emotionid (group: male)