Skip to contents

This function is used to flag the closest assessment record score to the baseline visit date (i.e enrollment date) within a certain window period.

Usage

detect_baseline_score(cur_record_date, enroll_date, time_interval = 30)

Arguments

cur_record_date

Date of current assessment record collected

enroll_date

Enrollment date (i.e. baseline visit date)

time_interval

Minimum window period (in days) from baseline visit date, Default: 30

Value

A character vector with the same length as cur_record_date and contain a flag value, Yes, for the closest record within the specified window period. Otherwise, missing value.