simdata_savuliuyasui2009 {lb} | R Documentation |
Simulate Data based on Savu, Liu and Yasui 2009
simdata_savuliuyasui2009(nobs, setting, rtype = c("list", "data.frame"))
nobs |
number of observations. |
setting |
an integer giving the simulation setting. Allowed values are \{1, 2, 3, 4, 5, 6, 7, 8\}. |
rtype |
a character giving the return type. Allowed values are |
depending on rtype either a list
or a data.frame
.
Savu A, Liu Q, Yasui Y (2010) Estimation of relative risk and prevalence ratio. Statistics in Medicine 29(22):2269-2281, DOI 10.1002/sim.3989
d <- simdata_savuliuyasui2009(nobs = 200, 1L)