The INBREED Procedure

Example 64.3 Pedigree Analysis with BY Groups

This example demonstrates the structure of the OUTCOV= data set created by PROC INBREED. Note that the first BY group has three individuals, while the second has five. Therefore, the covariance matrix for the second BY group is broken up into two panels. The following statements produce Output 64.3.1.

data Swine;
   input Group Swine_Number $ Sire $ Dam $ Sex $;
   datalines;
1  2789 3504 3514  F
2  2501 2200 3112  .
2  3504 2501 3782  M
;
proc inbreed data=Swine covar noprint outcov=Covariance
             init=0.4;
   var Swine_Number Sire Dam;
   gender Sex;
   by Group;
run;
title 'Printout of OUTCOV= data set';
proc print data=Covariance;
   format Col1-Col3 4.2;
run;

Output 64.3.1: Pedigree Analysis with BY Groups

Printout of OUTCOV= data set

Obs Group Sex _TYPE_ _PANEL_ _COL_ Swine_Number Sire Dam COL1 COL2 COL3
1 1 M COV 1 COL1 3504     1.20 0.40 0.80
2 1 F COV 1 COL2 3514     0.40 1.20 0.80
3 1 F COV 1 COL3 2789 3504 3514 0.80 0.80 1.20
4 2 M COV 1 COL1 2200     1.20 0.40 0.80
5 2 F COV 1 COL2 3112     0.40 1.20 0.80
6 2 M COV 1 COL3 2501 2200 3112 0.80 0.80 1.20
7 2 F COV 1   3782     0.40 0.40 0.40
8 2 M COV 1   3504 2501 3782 0.60 0.60 0.80
9 2 M COV 2   2200     0.40 0.60 .
10 2 F COV 2   3112     0.40 0.60 .
11 2 M COV 2   2501 2200 3112 0.40 0.80 .
12 2 F COV 2 COL1 3782     1.20 0.80 .
13 2 M COV 2 COL2 3504 2501 3782 0.80 1.20 .