Metaanalysis in R with Metafor 3 Uploading Data

  • Slides: 6
Download presentation
Meta-analysis in R with Metafor 3: Uploading Data Get datasets into R or use

Meta-analysis in R with Metafor 3: Uploading Data Get datasets into R or use a Metafor library dataset

Built-in Datasets Metafor comes with many datasets in a library Viechtbauer uses dat. bcg

Built-in Datasets Metafor comes with many datasets in a library Viechtbauer uses dat. bcg as an illustration in his 2010 paper on metafor I’ll use the validity of employment interviews in dat. mcdaniel 1994 for illustrations

Create Dataset in Excel Create columns for variables Author Date Effect size data (Hedges

Create Dataset in Excel Create columns for variables Author Date Effect size data (Hedges approach; Borenstein et al. , 2009 book; little bit of Schmidt & Hunter) Effect Size (ES), Sampling Variance (V) of ES Data to compute ES and V Moderators Must find or compute a common (across studies) ES and V

Example Dataset Mc. Leod 2007. xlsx – parenting and childhood depression Mc. Leod, B.

Example Dataset Mc. Leod 2007. xlsx – parenting and childhood depression Mc. Leod, B. D. , Weisz, J. R. , Wood, J. J. , (2007). Examining the association between parenting and childhood depression: A metaanalysis. Clinical Psychology Review, 27, 986 -1003. ES – Correlation (r) Variance – From sample size (N) Moderator – Both parents (B) or just mothers (M) Has Author, Year Has other moderators related to either parenting or depression measures – let’s take a peek

Reading. xlsx files > Invoke R > library(xlsx) > data <- read. xlsx(“path/filename. xlsx”,

Reading. xlsx files > Invoke R > library(xlsx) > data <- read. xlsx(“path/filename. xlsx”, sheet. Name = “nameofsheet”) Examples Read Mc. Leod. xlsx Print it Print built-in library data: dat. mcdaniel 1994

Video instructions from Youtube For reading an Excel file into R: https: //www. youtube.

Video instructions from Youtube For reading an Excel file into R: https: //www. youtube. com/watch? v=q. Pk 0 YEKhq. B 8&list=PLqzo. L 9 e. JTNBDd. Kg. Jza. Qc. Y 6 OXms. XAHU&index=4