powered by
Given a causal
do_sim(model, dataframe)
dataframe
A fitted mediator regression model
Data frame containing data to be analysed. The data frame has cases in rows and variables in columns.
if (FALSE) { # I don't want you to run this }
Run the code above in your browser using DataLab