
Manufacture Replica Outputs
Source:R/methods-ReplicaGrouper.R, R/methods-ReplicaStructure.R, R/methods-from-ready4.R
manufacture.RdCreates new outputs from replica modules.
Usage
# S4 method for class 'ReplicaGrouper'
manufacture(x, ...)
# S4 method for class 'ReplicaStructure'
manufacture(x, ...)Value
A list containing:
synthetic_population;synthetic_households; andobject.
The synthetic_population table contains one row
per synthetic agent.
The synthetic_households table contains one row
per synthetic household.
A data.frame containing one row per synthetic household.
Details
The behaviour of manufacture() depends on the class of
the supplied object.
Methods are currently available for:
ReplicaStructureReplicaGrouper
manufacture() is used when a replica module generates
a new output object rather than updating itself.
Depending on the module supplied, the method may:
create household-level summary tables; or
generate complete synthetic household outputs.
ReplicaGrouper Method
Generates synthetic households from a synthetic
population using one or more registered
ReplicaStructure definitions.
For each grouping region, the method:
identifies eligible household members;
applies registered household structures;
matches agents according to demographic rules;
generates synthetic households;
assigns household identifiers; and
creates household-level summary outputs.
ReplicaStructure Method
Creates a household-level summary table from a
ReplicaStructure.
One row is returned per synthetic household.
Household-level summaries typically include:
household identifiers;
household type;
household size; and
grouping-region identifiers.
The resulting table can be used for reporting, validation and downstream analysis.
See also
ReplicaStructure,
manufacture