View source: R/createDataDLAG.R
createDataDLAG | R Documentation |
Simulate a data set with exposures measured over time such that there is an effect of exposure 1 and 2 as well as an interaction between them
createDataDLAG( n = 200, p = 5, t = 37, q = 5, corr_exposures = 0.5, corr_time = 0.95, betaMain = NULL, betaInt = NULL )
n |
Sample size of the model |
p |
Number of exposures |
q |
Number of additional covariates |
corr_exposures |
Correlation between exposures at a point in time |
corr_time |
Correlation within exposures across time |
betaInt |
Optional list of true distributed lag surfaces for each interaction If left NULL, exposures 1 and 2 will have an interaction effect. |
beta |
Optional list of true distributed lag curves for each exposure. If left NULL, exposures 1 and 2 will have an effect on the outcome. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.