simulate.metaLik {metaLik} | R Documentation |
Simulate meta-analysis outcomes
Description
Simulate one or more meta-analysis outcomes from a fitted metaLik
object.
Usage
## S3 method for class 'metaLik'
simulate(object, nsim=1, seed=NULL, ...)
Arguments
object |
an object of class |
nsim |
number of outcome vectors to simulate. Default is |
seed |
an object specifying if and how the random number generator should be initialized, see |
... |
additional optional arguments. |
Value
A dataframe containing the simulated meta-analysis outcomes.
Author(s)
Annamaria Guolo and Cristiano Varin.
References
DerSimonian, R. and Laird, N. (1986). Meta-Analysis in Clinical Trials. Controlled Clinical Trials 7, 177–188.
Examples
data(vaccine)
m <- metaLik(y~latitude, data=vaccine, sigma2=sigma2)
sim <- simulate(m, nsim=2)
sim
[Package metaLik version 0.43.0 Index]