Enforces the same censoring time within clusters (pairs) by censoring both subjects at the minimum censoring time when censoring occurs first.
force.same.cens(
data,
id = "id",
time = "time",
cause = "cause",
entrytime = NULL,
cens.code = 0
)force_same_cens(
data,
id = "id",
time = "time",
cause = "cause",
entrytime = NULL,
cens.code = 0
)
A data.frame with enforced same censoring.
a data.frame in long format.
name of the cluster/pair identifier column.
name of the time variable.
name of the cause/status variable.
optional name of left-truncation time variable.
value indicating censoring in the cause variable.