Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wd

Output to Word in formatted tables


Description

Function for exporting MA output to nicely formatted Word tables.

Usage

wd(object, get = FALSE, new = FALSE, ...)

Arguments

object

Will take either an omni (Omnibus), mareg (meta-regression), or macat (single predictor categorical moderator analysis) object and export to Word in a formatted table.

get

Start up the Word program? TRUE if an instance of Word is not currently open.

new

Output data into a new Word document? TRUE or FALSE.

...

Additional arguments to be passed to R2wd functions.

Details

This function depends of the R2wd package. See Christian Ritter (2010). R2wd: Write MS-Word documents from R. R package version 1.3 for the details of the R2wd package.

Author(s)

AC Del Re & William T. Hoyt

Maintainer: AC Del Re acdelre@gmail.com

References

Christian Ritter (2010). R2wd: Write MS-Word documents from R. R package version 1.3.

See Also

Examples

# Sample data
id<-c(1:20)
n<-c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20)
r<-c(.68,.56,.23,.64,.49,-.04,.49,.33,.58,.18,-.11,.27,.26,.40,.49,
.51,.40,.34,.42,.16)
mod1<-c(1,2,3,4,1,2,8,7,5,3,9,7,5,4,3,2,3,5,7,1)
dat<-data.frame(id,n,r,mod1)
dat$var.r <- var_r(dat$r, dat$n) # MAc function to derive variance
dat$z <- r_to_z(dat$r)  # MAc function to convert to Fisher's z (z')
dat$var.z <- var_z(dat$n)  # MAc function for variance of z'
dat$mods2 <- factor(rep(1:2, 10))
dat

# Examples

# install R2wd
# install.packages('R2wd', dependencies = TRUE)

# mareg fuction
temp <- mareg(r~ mod1 + mods2, var = var.r, method = "REML",  data = dat)

# Export data to Word in formatted table
## Not run: wd(temp, get = TRUE, new = TRUE)

MAc

Meta-Analysis with Correlations

v1.1.1
GPL-2
Authors
AC Del Re & William T. Hoyt
Initial release
2010-07-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.