apply_attrition: Apply list of inclusion/exclusion criteria to a patient-level...

View source: R/apply_attrition.R

apply_attritionR Documentation

Apply list of inclusion/exclusion criteria to a patient-level dataframe

Description

[Questioning] Apply list of inclusion/exclusion criteria to a patient-level dataframe

Usage

apply_attrition(data, criteria_conditions)

Arguments

data

data.frame. Data set to be filtered

criteria_conditions

character dplyr-filter compatible conditions of the filtering criteria. These conditions will be applied to filter the input data set and obtain final analysis data set

Value

Filtered data frame

Examples

adtte_filtered <- visR::apply_attrition(adtte,
  criteria_conditions = c(
    "TRTP=='Placebo'", "AGE>=75",
    "RACE=='WHITE'", "SITEID==709"
  )
)


visR documentation built on May 29, 2024, 11:50 a.m.