cut.data.dt.into.periods: Make a period column in a data.table, with each period...

Description Usage Arguments Value

Description

Make a period column in a data.table, with each period starting at an intervention time.

Usage

1
2
## S3 method for class 'data.dt.into.periods'
cut(data.dt, sequence.dt)

Arguments

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.

Value

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.


mattmoo/SteppedWedgeAnalysis documentation built on Jan. 14, 2020, 12:25 a.m.