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

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

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