Skip to contents

Applies the user-supplied criteria functions to each endpoint to determine eligibility based on the criteria. The result is a logical column added to the data indicating whether each endpoint meets the criteria.

Usage

apply_criterion_endpoint(ep, analysis_data_container, fn_map)

Arguments

ep

A data.table containing expanded endpoint definitions and associated data, typically the output from add_event_index.

analysis_data_container

data.table containing the analysis data.

fn_map

A data.table mapping endpoint definitions to criterion functions.

Value

A data.table with an additional logical column crit_accept_endpoint

indicating whether each endpoint meets the defined criteria.