Hello, Thank you again example for ID=98 ID$ Parity daterecord milk; B98 1 17/08/2001 30.8 B98 1 28/09/2001 22.0 B98 1 12/11/2001 27.8 B98 2 21/10/2002 40.0 B98 2 02/12/2002 29.2 B98 2 15/01/2003 32.6 B98 2 26/02/2003 31.2 B98 3 16/12/2003 45.5 B98 3 30/01/2004 33.9 B98 3 12/03/2004 28.1 For the first parity: For the daterecord = 17/08 /2001 that is the first control of milk =30.8 and control test or number=1 For the daterecord = 28/09 /2001 that is the second control of milk =22 and control test or number=2 For the daterecord = 12/011/2001 that is the third control of milk =27.8 and control test or number=3.......ect For the same ID and for the seconde parity each date of record we add the number of the control the new data set it look like : ID Parity daterecord record number milk; B98 1 17/08/2001 1 30.8 B98 1 28/09/2001 2 22.0 B98 1 12/11/2001 3 27.8 B98 2 21/10/2002 1 40.0 B98 2 02/12/2002 2 29.2 B98 2 15/01/2003 3 32.6 B98 2 26/02/2003 4 31.2 B98 3 16/12/2003 1 45.5 B98 3 30/01/2004 2 33.9 B98 3 12/03/2004 3 28.1
... View more