a_match: Map Biomarkers Data to The Baseline Visits

View source: R/adt_private.R

a_matchR Documentation

Map Biomarkers Data to The Baseline Visits

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

a_match(dat_se, dat_marker, m_date)

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.

Value

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

Examples

## Not run: 
dat_se <- a_match(dat_se, dat_dx, "date_dx")

## End(Not run)


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