Fitting mediation models

mdt_moderated()

Fits a moderated mediation model

mdt_simple()

Joint-significance test for simple mediation

mdt_within()

Joint-significance test for within-participant mediation

mdt_within_wide()

Joint-significance test for simple mediation (wide-format input)

Mediation model helper functions

A collection of function to help people manipulate and enhance mediation_model.

check_assumptions()

Test assumptions for models underlying the mediation

plot_assumptions()

Returns diagnostic plots for the linear model used in a mediation

add_index()

Adds an indirect effect index to a fitted mediation model

add_index(<simple_mediation>)

add_index method for simple mediation

add_index(<within_participant_mediation>)

add_index method for within-participant mediation

add_index(<moderated_mediation>)

add_index method for moderated mediation

compute_indirect_effect_for()

Compute the indirect effect index for a specific value of the moderator

extract_model()

Extracts a single model from a mediation_model object

extract_models()

Extracts models from a mediation_model object

extract_tidy_models()

Extracts models from a mediation object as a data frame

display_models()

Displays models from a mediation object

print(<mediation_model>)

Print method for object of class mediation_model

Data sets

A collection of data sets to illustrate how JSmediation works.

ho_et_al

Data set showing simple and moderated mediation analysis

dohle_siegrist

Dohle and Siegrist (2014, Exp 1) illustrating within-subject analysis (long-format)

dohle_siegrist_wide

Dohle and Siegrist (2014, Exp 1) illustrating within-subject analysis (wide-format)

Misc.

build_contrast()

Builds a contrast code from character vector

standardize_variable() standardise_variable()

Standardize variables in a data set.

apastylr()

Creates an APA formatted report from a significance test