powered by
Simulate one or more meta-analysis outcomes from a fitted metaLik object.
metaLik
# S3 method for metaLik simulate(object, nsim=1, seed=NULL, ...)
an object of class "metaLik".
"metaLik"
number of outcome vectors to simulate. Default is 1.
1
an object specifying if and how the random number generator should be initialized, see simulate for details.
simulate
additional optional arguments.
A dataframe containing the simulated meta-analysis outcomes.
DerSimonian, R. and Laird, N. (1986). Meta-Analysis in Clinical Trials. Controlled Clinical Trials 7, 177--188.
# NOT RUN { data(vaccine) m <- metaLik(y~latitude, data=vaccine, sigma2=sigma2) sim <- simulate(m, nsim=2) sim # }
Run the code above in your browser using DataLab