View source: R/calculate_interaction_stats.R
calculate_interaction_stats | R Documentation |
The function calculates the effect of culture on the interaction between intention and physical force for the trolley and speedboat dilemmas.
calculate_interaction_stats(
df = NULL,
study_type,
selected_cultural_vars = c("Collectivism", "ver_ind", "hor_ind", "ver_col", "hor_col"),
iteration = 1e+05
)
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 |
The function returns the Bayesian and frequentist stats for study2 3rd order interactions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.