transient_impression: Calculate the Transient Impression after an Event

View source: R/transient_impression.R

transient_impressionR Documentation

Calculate the Transient Impression after an Event

Description

Calculate the Transient Impression after an Event

Usage

transient_impression(
  d,
  equation_key = NULL,
  equation_gender = NULL,
  eq_df = NULL,
  ...
)

Arguments

d

data that has been reshaped to be in long format, with columns: element, term, component, event, event_id, dimension, and estimate

equation_key

the actdata equation key for the equation to use to get the transient impression

equation_gender

male, female, or average, corresponding to the gender of equation to use when calculating the transient impression

eq_df

use this only if you have used your own equation and not one in actdata

Value

dataframe in long format, with one row for each element-dimension of the event, columns for fundamental sentiment and transient impression.

Examples

d <- tibble::tibble(actor_modifier = "tired", actor = "ceo", behavior = "advise", object = "benefactor")
d <- reshape_events_df(df = d, df_format = "wide", dictionary_key = "usfullsurveyor2015", dictionary_gender = "average")
transient_impression(d = d, equation_key = "us2010", equation_gender = "average")


ekmaloney/inteRact documentation built on Feb. 20, 2023, 1:29 p.m.