Closed MaxGhenis closed 3 years ago
Actually is_child
is calculated based on age, not from the FRS flag:
@MaxGhenis actually I think it is I'm afraid- formulas are secondary to inputs, when an input is provided it overrides the formula, but it's still useful to have the formula in case we haven't provided a child flag, e.g. in a test case. When loading the FRS we use the child flag.
That makes sense. Could there be a metadata field designating that a formula aligns with a field in the raw data, rather than being something new?
Fixed
Currently these are set from the
is_child
flag in the FRS and the union of 65+ and state pension receipt. A tiny number of 18-year-olds and 64-year-olds have theis_child
and state pension receipt, respectively. Let's make this purely age-based.