a_window: Define the Time Window

View source: R/adt_private.R

a_windowR Documentation

Define the Time Window

Description

For most data, the time windows are calculated from the baseline time (left window = the midpoint between current and the previous time point; right window = the midpoint between current and the next time point). If the time windows are longer than the maximum acceptable length, then force to select biomarker within the maximum window length we set. For the first and last baseline time, since there is no "previous" or "next" time point availiable, use the maximum acceptable window length instead.

Usage

a_window(dat, v_date, window, window_overlap, v_id = "subject_id")

Arguments

dat

The baseline time dataset.

v_date

A string indicating the date name of the baseline time.

v_id

A string indicating the id name of baseline dateset. Default is "subject_id" (may varied if using customized column names dictionary).

Value

A dataset with time window for biomarkers

Examples

## Not run: 
a_window(dat, v_date, window, window_overlap, v_id = "subject_id")

## End(Not run)


Thewhey-Brian/ADTools documentation built on July 1, 2022, 2:08 a.m.