Description Usage Arguments Details Value Author(s) See Also
View source: R/data_manipulation.R
Trim the data according to event number or time
1 2 3 | data.trim(t, data, trimmed = F)
data.trim.d(d, data, trimmed = F)
|
t |
Time of interest to pause/stop the study, which could be an interim stage or the final stage. |
data |
There are two possible structures allowed for this input data. The first type needs to have |
trimmed |
Whether this data has been trimmed by |
d |
Event counts to pause/stop the study. |
data.trim
is to trim the data upto t
, data.trim.d
is to trim the data upto the cound d
.
Note that data.trim
only outputs a data.table odered by ct
, the event/censoring time since the start of the study (calendar scale), including variables in the input data.table/frame data
, and additional/updated variables of event indicator delta
, ct
, follow-up time survival
since the enrollment.
data.trim.d
outpus a list of two components. The first component is the data censored with d
events have been observed, ordered by ct
, the event/censoring time since the start of the study (calendar scale). The second component is the time of the stopping point when d
events have been observed.
Lili Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.