simmsm | R Documentation |
Simulates data suitable for fitting Marginal Structural Model.
simmsm(subjects = 2500, tpoints = 10, psi = 0.3, n = 5)
subjects |
Number of Subjects in each simulated dataset |
tpoints |
Maximum number of time-points each subjects are followed |
psi |
Causal effect parameter for Marginal Structural Model |
n |
Number of simulated datasets an user wants to generate |
Ehsan Karim (R porting from SAS)
Young J.G., Hernan M.A., Picciotto S., and Robins J.M. Relation between three classes of structural models for the effect of a time-varying exposure on survival. Lifetime Data Analysis, 16(1):71-84, 2010.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.