attributes: Add male attribute to a query

maleR Documentation

Add male attribute to a query

Description

Add male attribute to a query

Add female attribute to a query

Usage

male()

female()

Value

An attribute that can be used in a query function

An attribute that can be used in a query function

Functions

  • male(): male demographic attribute

  • female(): female demographic attribute

Examples

# Create a cohort of males with Type 1 diabetes
t1dm <- cs(descendants(201254, 435216, 40484648), name = "type 1 diabetes")
t1dm_males <- cohort(conditionOccurrence(t1dm, male()))
# Create a cohort of males with Type 1 diabetes
t1dm <- cs(descendants(201254, 435216, 40484648), name = "type 1 diabetes")
t1dm_females <- cohort(conditionOccurrence(t1dm, female()))

OHDSI/Capr documentation built on Feb. 20, 2025, 4 a.m.