View source: R/data_extension.R
expand | R Documentation |
This function performs the data expansion for a given dataset
expand(
sw_data,
outcomeCov_var,
where_var,
use_censor,
maxperiod,
minperiod,
keeplist
)
sw_data |
datatable to expand |
outcomeCov_var |
A list of individual baseline variables used in final model |
where_var |
Variables used in where conditions used in subsetting the data used in final analysis (where_case), the variables not included in the final model |
use_censor |
Use censoring for per-protocol analysis - censor person-times once a person-trial stops taking the initial treatment value |
maxperiod |
Maximum period |
minperiod |
Minimum period |
keeplist |
A list contains names of variables used in final model |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.