md.exp | R Documentation |
Creates information of an event time variable distributed according to the specified exponential distribution.
This function call must be added to the md.simparams
object.
md.exp(name, startcol, covariates, betas, lambda)
name |
name of the column |
startcol |
column name specifying individual study start dates or a start date |
covariates |
names of covariate columns used |
betas |
betas for the corresponding covariate columns |
lambda |
baseline lambda |
## Not run:
library(missDeaths)
sim = md.simparams() +
md.uniform("X1", 0.5) +
md.norm("X2") +
md.exp("event", as.Date("1915-1-1"), c("X1", "X2"), c(0.1, 0.2), 0.05/365.2425)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.