- data_missing
A data frame containing the raw dataset with missing values.
- m
An integer specifying the number of imputations to perform. Default is 5.
- method_num
Character; imputation method for numeric variables
(for example, "pmm", "norm"). Default is "pmm".
- seed
An integer specifying the random seed for reproducibility. Default is 123.
- M_C1
A character vector of column names representing mediators at condition 1.
- M_C2
A character vector of column names representing mediators at condition 2.
Must match the length of M_C1.
- Y_C1
A character string representing the column name of the outcome variable at condition 1.
- Y_C2
A character string representing the column name of the outcome variable at condition 2.
- C_C1
Character vector of within-subject control variable names (condition 1).
- C_C2
Character vector of within-subject control variable names (condition 2).
- C
Character vector of between-subject control variable names.
- C_type
Optional vector of the same length as C.
Each element is "continuous", "categorical", or "auto"
(default). Ignored when C = NULL.
- W
Optional character vector: moderator names (at most J).
- W_type
Optional vector of the same length as W.
Same coding as C_type. Ignored when W = NULL.
- center_W
Logical. Whether to center the moderator variable W.
- keep_W_raw, keep_C_raw
Logical; keep the original W / C columns
in the returned data?