Skip to contents

Computes event times and statuses from start, event, and review dates.

Usage

AS.survoutcome(date_start, date_event, date_follow, divisor = 365.2425/12)

Arguments

date_start

Vector of start dates.

date_event

Vector of event dates.

date_follow

Vector of last follow-up dates for censored cases.

divisor

Unit conversion factor for time. Default = 365.2425/12.

Value

A numeric matrix with two columns: survival time and status (1 = event, 0 = censored). Cases with missing start dates or with survival time ≤ 0 are returned as NA in both columns.