simsurvbin: Simulation binary and time-to-event data

Description Usage Arguments Value Author(s) References

View source: R/simulation-functions.R

Description

simulates two-sample binary and time-to-event dataset.

Usage

1
simsurvbin(a.shape, b.scale, rate.param, prob0, ass.par, ss, censoring = "Exp")

Arguments

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

Value

Binary and time-to-event data

Author(s)

Marta Bofill Roig

References

Trivedi et al, Appendix A


MartaBofillRoig/SurvBin documentation built on Sept. 29, 2021, 5:18 p.m.