derive_var_atirel {admiral}R Documentation

Derive Time Relative to Reference

Description

[Deprecated]

This function is deprecated, as it is deemed as too specific for admiral. Derivations like this can be implemented calling mutate() and case_when().

Derives the variable ATIREL to CONCOMITANT, PRIOR, PRIOR_CONCOMITANT or NULL based on the relationship of cm Analysis start/end date/times to treatment start date/time

Usage

derive_var_atirel(dataset, flag_var, new_var)

Arguments

dataset

Input dataset The variables TRTSDTM, ASTDTM, AENDTM are expected

flag_var

Name of the variable with Analysis Start Date Imputation Flag

new_var

Name of variable to create

Details

ATIREL is set to:

Value

A dataset containing all observations and variables of the input dataset and additionally the variable specified by the new_var parameter.

Author(s)

Teckla Akinyi


[Package admiral version 0.8.4 Index]