calculate_interaction_stats: Calculate interaction stats for study2 interaction terms

View source: R/calculate_interaction_stats.R

calculate_interaction_statsR Documentation

Calculate interaction stats for study2 interaction terms

Description

The function calculates the effect of culture on the interaction between intention and physical force for the trolley and speedboat dilemmas.

Usage

calculate_interaction_stats(
  df = NULL,
  study_type,
  selected_cultural_vars = c("Collectivism", "ver_ind", "hor_ind", "ver_col", "hor_col"),
  iteration = 1e+05
)

Arguments

df

a dataframe, either "study2a" or "study2b"

study_type

the type of the study either "trolley" or "speedboat"

selected_cultural_vars

character vector. the cultural variables to be included in the interaction. Possible values: "Collectivism", "ver_ind", "hor_ind", "ver_col", "hor_col"

iteration

the number of iterations for the Bayesian analysis

Value

The function returns the Bayesian and frequentist stats for study2 3rd order interactions.


marton-balazs-kovacs/trolleyMultilabReplication documentation built on Oct. 13, 2023, 3:15 p.m.