countOutcomeold: countOutcome
Description
Compute the prior sum of the response appearing in the outcome column for the index
Usage
countOutcomeold(data, index, response)
Value
the vector of the lagged cumulative sum.
Arguments
- data
the dataset to compute an outcome vector for
- index
the subsets to count over
- response
the actually response value being counted