sum_le: Compute number of life events

Description Usage Arguments

Description

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.

Usage

1
sum_le(data, range = c(1:24), na.rm = F)

Arguments

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.


aneumann-science/LifeEvents documentation built on May 10, 2019, 11:46 a.m.