For each subject
let
be the step function that represents the number of events that subject
experiences up to time
.
Then
represents a counting process for subject
.
Let
be an indicator variable that has the value 1 if subject
i is at risk at time
t and 0 otherwise, which is equivalent to
if
and
otherwise.
for an individual
with a vector of predictor values
has the following form:
where
is the baseline hazard rate that characterizes the unspecified distribution of
survival time and
is a
p-component vector of unknown regression coefficients.

has the following form:

has the following form:
,
can change states from 1 to 0 and back again multiple times.
In the counting process input form, multiple rows represent each subject. Each row describes a time interval when the values of all the variables are constant. Time-dependent predictors change between rows. The intervals begin just after the start time and include the end time. The start time for the interval is the entry time for the subject. The end time is the response variable for the subject. The censoring column indicates any row where the end time is not an event time.