PCG Hierarchisation
pcg_hierarchy.RdApply hierarchy to grouped PCG data. Application accords to Art. 2 & 3 VORA-EDI
Arguments
- data_input
A
data.tableof grouped PCG data with necessary variablesAhvNr,Geburtsjahr,pcg.- direction
Character vector which determines the output dimensions.
"wide"returns a dummy matrix output,"long"returns a long format output.- display_all
Boolean, whether to return all variables, even if no corresponding PCG entries exist. Default: FALSE.
- display_hyp
Logical with default
FALSE. IfTRUEnon-independent PCG "hyp" is treated as independent (and also still combined with DM2 to DM2hyp).
Value
A data.table containing
- AhvNr
Pseudo SSN
- Geburtsjahr
Year of birthday - used with
AhvNrto warrant identification- pcg
Grouped PCG