View source: R/derive_var_bcvacritxfl.R
| derive_var_bcvacritxfl_util | R Documentation |
CRITx/CRITxFL pair to BCVA dataset The
derive_var_bcvacritxfl_util()
function has been superseded in favor of admiral::derive_vars_crit_flag().
Helper function for derive_var_bcvacritxfl() that adds a criterion variable CRITx and
its corresponding flag CRITxFL to a dataset containing BCVA records
derive_var_bcvacritxfl_util(
dataset,
crit_var,
critx_text,
critxfl_cond,
counter,
bcva_range = NULL,
bcva_uplim = NULL,
bcva_lowlim = NULL
)
dataset |
Input dataset (usually ADBCVA). |
crit_var |
Variable with respect to which |
critx_text |
String containing the text for |
critxfl_cond |
String containing R code detailing the criterion to be satisfied
for |
counter |
Integer detailing the value of x to use in |
bcva_range |
Numeric vector of length two detailing lower and upper change in
BCVA limits ( |
bcva_uplim |
Numeric value detailing highest change in BCVA limit ( |
bcva_lowlim |
Numeric value detailing lowest change in BCVA limit ( |
The criterion for change in BCVA in CRITxFL can be of three types: (1) value lies
within some range; a <= crit_var <= b; (2) value is below some upper limit; crit_var <= a;
(3) value is above some lower limit; b <= crit_var. For (1), bcva_range must
be specified to this function; for (2), bcva_uplim; for (3) bcva_lowlim. It is
necessary to supply at least one of these three arguments.
NOTE: if crit_var is equal to NA, then the resulting criterion flag is also marked
as NA.
The input BCVA dataset with additional columns CRITx, CRITxFL.
Edoardo Mancini
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.