Enhances a replica module by updating or enriching the data managed by that module.
Details
The behaviour of enhance() depends on the class of the
supplied object.
Methods are currently available for:
ReplicaAdder
In the current implementation, enhance() is used to
execute attribute-assignment workflows.
For a ReplicaAdder, the method assigns values of a
target attribute to synthetic agents using information
supplied in contingency tables and optional marginal
distributions.
The resulting enriched synthetic population is stored
within the module and can subsequently be validated using
ratify.
Workflows that generate new output objects, such as
household generation, are implemented using
manufacture.
ReplicaAdder Method
Executes the attribute-assignment workflow.
The method:
resolves missing contingency groups;
calculates conditional fractions;
converts fractions into agent allocations;
assigns target attribute values; and
updates the synthetic population.
Validation results are cleared before execution and may
subsequently be regenerated using ratify().
The updated synthetic population is stored in:
x@population