age_grp: Define age group

Description

Returns the 5-year age group ("<40", "40-44", ..., or "85+" years) to which an individual belongs.

Usage

1
age_grp(age)

Arguments

age

continuous variable in years.

Value

Factor indicating the 5-year age group.

Author(s)

Stavroula A. Chrysanthopoulou

See Also

d_grp

Examples

1
2
3
4
# 5-year age group of an individual 21 years old:
  age_grp(21)
# 5-year age group of an individual 77.5 years old:
  age_grp(77.5)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.