Description Usage Arguments Value Examples
This function calculates the Deficit Index (DI) and returns results
as list: di
a column-vector containing
deficit indexes for each individual and
columns
that were used to calculate the di
.
1 2 3 |
dat |
A data frame. Required parameter. |
cols |
A list of column names.
Default: |
invert |
A list of columns which have to be inverted.
Default: |
rescale |
A flag that tell the program to rescale columns
if the values a not 0/1. Default: |
age |
A name of column which represents age of a patient.
Default: |
rescale.custom |
A custom rescaling. See example below.
Default: |
rescale.avoid |
A set of column names for which rescaling should be avoided.
Default: |
bins |
A number of bins for plotting the DI against age from a dataset.
Default: |
visible |
A flag to show DI plot (mean DI in a population by age)
Default: |
A list of two: di
a column-vector containing
deficit indexes for each individual and
columns
(rescaled if flag rescale
was set to TRUE
)
that were used to calculate the di
.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.