sex

Returns the gender (sex) of the current agent.

Synopsis

sex

Description

A factor that is tied to each agent’s sex as defined in the synthetic population. The default sexes are female encoded as 0 and male encoded as 1.

Examples

Female agents can be sorted into the state Select with the transition rule

if (sex == female) then next(Select)

or equivalently with

if (sex == 0) then next(Select)

Errors

Uppercase Female and Male cause an error.

See Also

female, male, race, id, age, household_relationship