Description Usage Arguments Details References Examples

`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).

1 2 3 4 5 6 7 8 9 |

`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 |

`mods` |
optional argument to include one or more moderators in the model. |

`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). |

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.

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/

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).
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.