Writing
How to write an empirical research paper STEP BY STEP (thesis/dissertation)
Statistics
Please contact me if you spot any mistakes in any of these worksheets. I am not the author of all of these. I did author many.
General
Calc the effect size of indirect effects
Calculate Sobel Test (for mediation)
Multiple Imputation using Stochastic Regression
library(mice)
data1 = read.csv('[filepath]')
tempdata = mice(data = data1,m=5, maxit=5,seed=500, methods='mice.impute.pmm')
completedData <- complete(tempdata,5)
write.csv(completedData, file = '[destinationfilepath]')
Citations for Multiple Imputation:
Buuren, S. V., & Groothuis-Oudshoorn, K. (2010). mice: Multivariate imputation by chained equations in R. Journal of statistical software, 1-68.
Brockmeier, L. L., Kromrey, J. D., & Hines, C. V. (1998). Systematically missing data and multiple regression analysis: an empirical comparison of deletion and imputation techniques. Multiple Linear Regression Viewpoints, 25, 20-39.
Alpha inflation
Structural Equation Modeling
Meta Analysis
Calculate d,v,w and Meanes macro all combined
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
*' Adjust D based on small sample sizes. ES refers to raw sample sizes. D refers to edjusted sample sizes.
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
COMPUTE D = ES* (1- (3/ ( (4* (NT+NC) ) -9 ) ) ) .
COMPUTE V = ( (NT+NC) / (NT*NC) ) + ( (D**2) / (2* (NT+NC) ) ) .
COMPUTE w = 1/V .
EXECUTE .
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
*' Run the Meanes macro below based on D and W (Don't use ES).
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
INCLUDE "C:\Users\Main\Documents\Stats\MEANES.SPS" .
MEANES ES= D /W= W /PRINT=c .
*' E.g., MEANES ES = D /W = IVWEIGHT .
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
*' If Homogenity test is significant, use the random variance component to adjust V and W using the syntax below
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
COMPUTE VAdjusted = V+0.224 .
EXECUTE .
COMPUTE wadjusted = 1/VAdjusted .
EXECUTE .
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
*' Rerun the Meanes macro using D and wadjusted
*' ---------------------------------------------------------------------------------------------------------------------------------------------------
INCLUDE "C:\Users\Main\Documents\Stats\MEANES.SPS" .
MEANES ES= D /W= wadjusted /PRINT=c .
*' E.g., MEANES ES = D /W = IVWEIGHT .