rD: Data generation: Gaussian-Gaussian model

Description Usage Arguments Value Examples

View source: R/methods-for-data-generation.R

Description

Random draws of heteroscedasticity responses of studies, where each study in a random effects meta regression model follows a Gaussian response. Thus D = (d * X) / (s-1) where X is chi-squared distributed.

Usage

1
  rD(n, d, s)

Arguments

n

number of draws.

d

heteroscedasticity.

s

study sizes.

Value

A (k,n)-matrix. Each column is an independent draw.

Examples

1
2
3
d_test = rchisq(13, df=0.02)
s_test = rep(100, 13)
rD(n=10, d=d_test, s=s_test)

metagen documentation built on May 29, 2017, 7:13 p.m.