sum_le
computes the number of life events experienced. Options
include to only take into account a subset of LE, as well as
how to handle missing values. Completely missing rows are set to missing.
1 |
data |
A matrix, which includes information, whether life evetns occured (1) or not (0). |
range |
A numeric vector. Indicates which life events should be taken into account. The default is c(1:24), which stands for all closed events. |
na.rm |
A logical. na.rm=T will treat missing life events as 0. na.rm = F will set number of life events to missing in presence of missing life events. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.