{"title":"SAS<sup>®</sup> Macros for Computing Causal Mediated Effects in Two- and Three-Wave Longitudinal Models.","authors":"Matthew J Valente, David P MacKinnon","doi":"","DOIUrl":"","url":null,"abstract":"<p><p>Mediation analysis is a statistical technique for investigating the extent to which a mediating variable transmits the effect of an independent variable to a dependent variable. Because it is used in many fields, there have been rapid developments in statistical mediation. The most cutting-edge statistical mediation analysis focuses on the causal interpretation of mediated effects. Causal inference is particularly challenging in mediation analysis because of the difficulty of randomizing subjects to levels of the mediator. The focus of this paper is on updating three existing SAS<sup>®</sup> macros (%TWOWAVEMED, %TWOWAVEMONTECARLO, and %TWOWAVEPOSTPOWER, presented at SAS<sup>®</sup> Global Forum 2017) in two important ways. First, the macros are updated to incorporate new cutting-edge methods for estimating longitudinal mediated effects from the Potential Outcomes Framework for causal inference. The two new methods are inverse-propensity weighting, an application of propensity scores, and sequential G-estimation. The causal inference methods are revolutionary because they frame the estimation of mediated effects in terms of differences in potential outcomes, which align more naturally with how researchers think about causal inference. Second, the macros are updated to estimate mediated effects across three waves of data. The combination of these new causal inference methods and three waves of data enable researchers to test how causal mediated effects develop and maintain over time.</p>","PeriodicalId":90722,"journal":{"name":"SAS global forum","volume":"2018 ","pages":""},"PeriodicalIF":0.0,"publicationDate":"2018-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6133317/pdf/nihms951314.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"41123996","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"SAS® Macros for Computing the Mediated Effect in the Pretest-Posttest Control Group Design.","authors":"Matthew J Valente, David P MacKinnon","doi":"","DOIUrl":"","url":null,"abstract":"<p><p>Mediation analysis is a statistical technique for investigating the extent to which a mediating variable transmits the relation of an independent variable to a dependent variable. Because it is useful in many fields, there have been rapid developments in statistical mediation methods. The most cutting-edge statistical mediation analysis focuses on the causal interpretation of mediated effect estimates. Cause-and-effect inferences are particularly challenging in mediation analysis because of the difficulty of randomizing subjects to levels of the mediator (MacKinnon, 2008). The focus of this paper is how incorporating longitudinal measures of the mediating and outcome variables aides in the causal interpretation of mediated effects. This paper provides useful SAS® tools for designing adequately powered studies to detect the mediated effect. Three SAS macros were developed using the powerful but easy-to-use REG, CALIS, and SURVEYSELECT procedures to do the following: (1) implement popular statistical models for estimating the mediated effect in the pretest-posttest control group design; (2) conduct a prospective power analysis for determining the required sample size for detecting the mediated effect; and (3) conduct a retrospective power analysis for studies that have already been conducted and a required sample to detect an observed effect is desired. We demonstrate the use of these three macros with an example.</p>","PeriodicalId":90722,"journal":{"name":"SAS global forum","volume":"2017 ","pages":""},"PeriodicalIF":0.0,"publicationDate":"2017-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6133302/pdf/nihms939374.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"36488891","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"DATA CLEANING: LONGITUDINAL STUDY CROSS-VISIT CHECKS.","authors":"Lauren Parlett","doi":"","DOIUrl":"","url":null,"abstract":"<p><p>Cross-visit checks are a vital part of data cleaning for longitudinal studies. The nature of longitudinal studies encourages repeatedly collecting the same information. Sometimes, these variables are expected to remain static, go away, increase, or decrease over time. This presentation reviews the naïve and the better approaches at handling one-variable and two-variable consistency checks. For a single-variable check, the better approach features the new ALLCOMB function, introduced in SAS® 9.2. For a two-variable check, the better approach uses a BY PROCESSING variable to flag inconsistencies. This paper will provide you the tools to enhance your longitudinal data cleaning process.</p>","PeriodicalId":90722,"journal":{"name":"SAS global forum","volume":"2014 ","pages":"1314"},"PeriodicalIF":0.0,"publicationDate":"2014-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4224286/pdf/nihms595284.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"32803529","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}