Creates a new ReplicaStructure used during synthetic
household generation.
Arguments
- household_type
Character string identifying the household type.
Examples include:
"CoupleHousehold""Family""SingleAdultHousehold""SingleParent"
- couple_gender_distribution
Named numeric vector controlling the gender composition of generated couples.
For example:
c( "Male|Female" = 1 )generates only male-female couples.
- couple_age_distribution
Named numeric vector controlling partner age-gap distributions.
For example:
c( "-5-5" = 1 )indicates that partners should typically be within five years of one another.
- parent_child_age_distribution
Named numeric vector controlling parent-child age-gap distributions.
For example:
c( "20-30" = 1 )indicates that parents should generally be between twenty and thirty years older than their children.
Details
A ReplicaStructure defines:
The type of household to be generated.
The positions required within the household (for example adults and children).
Couple gender distributions.
Couple age-gap distributions.
Parent-child age-gap distributions.
Household structures are subsequently configured using
renew.
After construction, household-position requirements should
be specified using renew.
Example:
hh <- ReplicaStructure(
"Family"
)
hh <- renew(
hh,
household_position = "Parent",
position_identifier = "adult",
amount = 2,
backup_position_identifiers = character()
)
hh <- renew(
hh,
household_position = "Child",
position_identifier = "child",
amount = 2,
backup_position_identifiers = character()
)The resulting object can then be supplied to a
ReplicaGrouper for household generation.
