Description Usage Arguments Value
Make a period column in a data.table, with each period starting at an intervention time.
1 2 | ## S3 method for class 'data.dt.into.periods'
cut(data.dt, sequence.dt)
|
data.dt |
data.table with columns participant, cluster, time, and outcome. Outcome should be continuous. |
sequence.dt |
data.table with information about the sequences, with columns sequence, transition.time, and intervention.time. |
A data.table with period column assigned. This will be done by reference for speed, so you don't need to use the return value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.