simulate.metaLik | R Documentation |
Simulate one or more meta-analysis outcomes from a fitted metaLik
object.
## S3 method for class 'metaLik'
simulate(object, nsim=1, seed=NULL, ...)
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. |
A dataframe containing the simulated meta-analysis outcomes.
Annamaria Guolo and Cristiano Varin.
DerSimonian, R. and Laird, N. (1986). Meta-Analysis in Clinical Trials. Controlled Clinical Trials 7, 177–188.
data(vaccine)
m <- metaLik(y~latitude, data=vaccine, sigma2=sigma2)
sim <- simulate(m, nsim=2)
sim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.