|Type of Tool
| Rochester_MIXED_MSEM is a macro that models mediation analysis with two level nested data structures. For example, a longitudinal study has such a nested structure; with repeated assessments over time nested within each subject. If a cross-sectional study involves a limited number of providers, subjects treated by the same provider also have such a two-level nesting structure.
The macro uses SAS PROC MIXED procedure to model the estimates and uses Sobel (1982)\x92s approach to calculate the standard error and asymptotic confidence intervals
|Classification Graph Type
|Sobel M. E. (1982). Asymptotic Confidence Intervals for Indirect Effects in Structural Equation Models. Sociological Methodology , Vol. 13, pp. 290-312.
|SAS Software SAS V9.2 or 9.3
| DSName = name of SAS dataset
DepVar = name of dependent variable
grp = name of group or between level variable
subj = name of individual or within level variable
M = name of mediation variable
X = name of independent variable
ddfm = name of method for computing denominator degrees
of freedom for the fixed effect. ddfm=bw for the between and within method,
for unbalanced data ddfm=satterhwaithe is often recommended, which is for
OutForm = when left empty, results will be shown in listing format under SAS 9.2, and
HTML format under SAS 9.3 in the output window screen. When set to HTML, PDF, or RTF, html, pdf, or rtf format will be created.
|R-Code - Attachment
|SAS-Code - Attachment
|Rochester_MIXED_MSEM Main Macro.sas
|SAS Example Code
|Stata-Code - Attachment
|Other Code - Attachment
|Called Data Manipulation
|Called Checking Macro
|SAS Example Code
|SAS Example Output
|Special Features Attached
|Special Features Text
|Section with calls to needed macros
|Macro call with fully specified parameters
|Section with definitions of global macro parameters
|Section with definitions of local macro variables
|Stat Tools Disclaimer
|The development of this macro was supported in part by CTSI pilot grant from the University of Rochester.
|The views expressed within CTSpedia are those of the author and must not be taken to represent policy or guidance on the behalf of any organization or institution with which the author is affiliated.
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT OLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.