Description Usage Arguments Value Author(s) References
View source: R/simulation-functions.R
simulates two-sample binary and time-to-event dataset.
1 | simsurvbin(a.shape, b.scale, rate.param, prob0, ass.par, ss, censoring = "Exp")
|
a.shape |
shape parameter Weibull |
b.scale |
scale parameter Weibull |
rate.param |
Censoring distribution parameter (Rate for the exponential, Max for Uniform(0,max)) |
prob0 |
probability binary outcome |
ass.par |
Association between binary and time-to-event outcome according to a Frank Copula |
ss |
Sample size per arm |
censoring |
Censoring distribution. Options: "Exp": Exponential; "Unif": Uniform |
Binary and time-to-event data
Marta Bofill Roig
Trivedi et al, Appendix A
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.