a_match: Map Biomarkers Data to The Baseline Visits

Description Usage Arguments Value Examples

View source: R/adt_private.R

Description

Map all marker data to baseline visits. For each visit, assign the closest markers within the setted window. If no marker satisfies assignment criteria, mark as missing. If two marker satisfy assignment criteria, take first one.

Usage

1
a_match(dat_se, dat_marker, m_date, duplist)

Arguments

dat_se

A dataset that will be merged.

dat_marker

A data set including new biomarker that will be merged.

m_date

A string indicating the name of measure date in dat_marker.

duplist

A list of duplicated columns names.

Value

The matched (larger) dataset including newly added biomarker data.

Examples

1
2
3
4
## Not run: 
dat_se <- a_match(dat_se, dat_dx, "date_dx", duplist)

## End(Not run)

olssol/ADTool documentation built on Feb. 12, 2021, 3:49 a.m.