trackEventsPerTrial
R/eventTracking.R
getNumberEvents.Rd
Helper Function for trackEventsPerTrial
getNumberEvents(event, time, t)
(numeric) event indicator.
numeric
(numeric) event times.
(numeric) study time-point.
This function returns the number of events occurred until time t.
event <- c(0, 1, 1, 1, 0) time <- c(3, 3.4, 5, 6, 5.5) getNumberEvents(event = event, time = time, t = 5) #> [1] 2