R/reidentify_actor.R
reidentify_actor.Rd
Function to Generate the Re-identification of the Actor
reidentify_actor(
d,
equation_key = NULL,
equation_gender = NULL,
eq_df = NULL,
...
)
a dataframe from reshape events that should be only actor_modifier and actor elements or object_modifier and object elements
a string corresponding to the equation key from actdata
either average, male, or female, depending on if you are using gendered equations
dataframe with 3 columns corresponding to the EPA of optimal actor identity relabel
d <- tibble::tibble(actor = "ceo", behavior = "advise", object = "benefactor")
d <- reshape_events_df(df = d, df_format = "wide", dictionary_key = "usfullsurveyor2015", dictionary_gender = "average")
#> Joining, by = c("term", "component")
reidentify_actor(d = d, equation_key = "us2010", equation_gender = "average")
#> Adding missing grouping variables: `event_id`
#> # A tibble: 1 × 3
#> E P A
#> <dbl> <dbl> <dbl>
#> 1 0.531 1.64 -0.0677