## getting an indirect effect index
within_model <- mdt_within(data = dohle_siegrist,
IV = name,
DV = willingness,
M = hazardousness,
grouping = participant)
add_index(within_model)
Run the code above in your browser using DataLab