Define a surrogate varible from existing features, and specify associated lower and upper cutoffs.
PhecapSurrogate(variable_names, lower_cutoff = 1L, upper_cutoff = 10L)a character scalar or vector consisting of variable names. If a vector is given, the value of the surrogate is defined as the sum of the values of each variable.
a numeric scalar. If the surrogate value of a patient is less than or equal to this cutoff, then this patient is treated as a control in SAFE.
a numeric scalar. If the surrogate value of a patient is greater than or equal to this cutoff, then this patient is treated as a case in SAFE.
An object of class PhecapSurrogate.
This function only stores the definition. No calculation is done.
See PheCAP-package for code examples.