Sib-pair Command: loops


ClassAnalysis and data manipulation command
Nameloops
Arguments[<binary trait>]

Prints marital or inbreeding loops in the active pedigrees. If a binary trait is specified, the members of the loop are flagged as "y" at that trait, with nonmembers set to missing at the trait.

Example:

>> read pedigree inline
1 1 x x m
1 2 x x f
1 3 1 2 m
1 4 1 2 f
1 5 3 4 m
1 7 x x f
1 8 5 7 m
2 1 x x m
2 2 x x f
2 3 1 2 m
2 4 1 2 f
3 1 x x m
3 2 x x f
3 3 x x m
3 4 x x f
3 5 1 2 m
3 6 3 2 m
3 7 3 4 f
3 8 5 7 m
;;;;
>> run
>> loops

Pedigree              Cycles
-------------------- ----------------------------------------
1                    4<-{1x2}->3-{3x4}-4
3                    7<-{3x4}-3-{3x2}-2-{1x2}->5-{5x7}-7

See also:

show pedigreestabulate pedigrees
generations summarize pedigree(s) and (save) generations


<< (generations)Up to index>> (relatives)