MEDIATOR mediator <(med-options)> =treatment <(treat-options)>;
The MEDIATOR statement is required for specifying the mediator model. You provide mediator (the name of the mediator variable) to the left of the equal sign and treatment (the name of the treatment variable) to the right. You cannot specify more than one MEDIATOR statement in an analysis.
For example, the following statement specifies M as the mediator variable and T as the treatment variable in the analysis:
mediator M = T;
Together, the COVAR, MEDIATOR, and MODEL statements specify the relationships of all variables in the mediation analysis. The mediator and treatment variables that you specify in the MEDIATOR statement must be consistent with those that you specify in the MODEL statement. If there are covariates in the analysis, do not specify them or their effects in the MEDIATOR statement even though covariate effects on the mediator variable are being modeled. Instead, use the COVAR statement to specify covariate effects.
Mediator and treatment variables can be either binary or continuous. You can specify that a mediator or treatment variable is a binary variable by listing it in the CLASS statement. Otherwise, it is assumed to be continuous.
PROC CAUSALMED assumes a normal distribution and the identity link function for a continuous mediator, and a Bernoulli distribution (binomial distribution of a single trial) and the logit link function for a binary mediator.
For binary mediators, it is important to indicate which level or category represents the events being modeled and which level or category represents the controlled mediator level. You can use the following med-options to specify the attributes of the binary levels:
For binary treatment variables, it is important to indicate which level or category represents the treatment or control level. You can use the following treat-options to specify the attributes of the binary treatment levels: