mc.fcor: Fisher-transformed Pearson's correlation: Monte Carlo Based...

Description Usage Arguments Details References Examples

View source: R/mc.fcor.R

Description

mc.fcor returns the Monte Carlo based tests of the residual heterogeneity in random- or mixed- effects model of Pearson's correlation coefficients transformed with Fisher's r-to-z transformation (z scores).

Usage

1
2
3
4
5
6
7
8
9
mc.fcor(
  n,
  z,
  model = "random",
  mods = NULL,
  nrep = 10^4,
  p_cut = 0.05,
  mc.include = FALSE
)

Arguments

n

a vector of sample sizes in each of the included studies.

z

a vector of Fisher-transformed Pearson's correlations.

model

choice of random- or mixed- effects models. Can only be set to "random", or "mixed".

mods

optional argument to include one or more moderators in the model. mods is NULL for random-effects model and a dataframe for mixed-effects model. A single moderator can be given as a vector of length k specifying the values of the moderator. Multiple moderators are specified by giving a matrix with k rows and as many columns as there are moderator variables. See rma for more details.

nrep

number of replications used in Monte Carlo Simulations. Default to 10^4.

p_cut

cutoff for p-values, which is the alpha level. Default to 0.05.

mc.include

if true, Monte Carlo simulation results are included in the output (e.g., Monte Carlo critical values).

Details

This function returns the test statistics as well as their p-value and significances using (1) Q-test, (2) Monte Carlo Based Heterogeneity Test with Maximum Likelihood (ML), and (3) Monte Carlo Based Heterogeneity Test with Restricted Maximum Likelihood (REML).

The results of significances are classified as "sig" or "n.s" based on the cutoff p-value (i.e., alpha level). "sig" means that the between-study heterogeneity is significantly different from zero whereas "n.s" means the between-study heterogeneity is not significantly different from zero. The default alpha level is 0.05.

References

Zuckerman, M. (1994). Behavioral expressions and biosocial bases of sensation seeking. New York, NY: Cambridge University Press.

Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1-48. URL: https://www.jstatsoft.org/v36/i03/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# A meta-analysis of 13 studies studying the correlation between sensation
# seeking scores and levels of monoamine oxidase (Zuckerman, 1994).
sensation <- mc.heterogeneity:::sensation
# n is a list of samples sizes
n <- sensation$n
# Pearson's correlation
r <- sensation$r
# Fisher's Transformation
z <- 1/2*log((1+r)/(1-r))
## Not run: 
#' mc.run <- mc.fcor(n, z, model = 'random', p_cut = 0.05)

## End(Not run)
## Note: this mc.fcor() function will soon be deprecated
## and replaced by \link[boot.heterogeneity]{boot.fcor} in
## package [boot.heterogeneity](https://CRAN.R-project.org/package=boot.heterogeneity).

mc.heterogeneity documentation built on Jan. 13, 2021, 1:06 p.m.