Purdue University 2002 Swine Research Report

Alternative Nonlinear Mixed Effects Models for Swine Growth

A. P. Schinckel1, M. E. Einstein1, and B. A. Craig2
Departments of 1Animal Sciences and 2Statistics

Introduction

The production of pigs has developed towards highly specialized coordinated production systems. Variability in the growth rates of pigs is important to the economic costs and returns of both the pork producer and processor. The optimization of pork production systems including the evaluation of alternative management and marketing strategies requires knowledge of the variation in body weight and carcass composition.

Typically, pigs are weighed every 14-21 days from 50 lbs to 250 lbs live weight to develop live weight growth curves. Heavier pigs at weaning usually have a competitive advantage and remain heavier than the other pigs of the group, all the way to market. Also, the variation among the pigs for live weight increases as age increases. The objective of this study was to evaluate alternative mixed effects models of a standard growth function.

Materials and Methods

Swine Growth Model. Consider the following fixed effects growth model,

WTGAINi,t = WTi,t - WTi,0 = C(1-exp(-MtA)) + ei,t ,

proposed by Bridges. Here WTGAINi,t is the weight gain from birth to age t, WTi,t is the weight at age t, t is the days of age, C is the average mature body weight, M is the exponential growth decay constant and A is the kinetic order constant. Typically, a constant value of 3.1 lb is used for birth weight (WTi,0). Since the exponential decay parameter is close to zero, the model was reparamaterized (M' = ln(M)) with the form WTGAINi,t = C ((1-exp(-exp (M') tA)).

In this function, any combination of C, M', or A could be included as random effects. For example, the mixed model with all three random effects can be expressed as WTGAINi,t = (C + ci)(1 – exp (-exp(M' + m'i) t(A + ai) + ei,t , where ci, m'i and ai would be each pig’s random effects assumed to be multivariate normal with mean 0 and variances sc2, sm'2, and sa2, respectively. Additionally, the random effects of each pig may be correlated.

The simplest single random effects model has the form WTGAINi,t = (C + ci)(1 – exp (-exp(M') tA) + ei,t , where ci is the random effect for each pig . This mixed effects growth function can also be written as WTGAIN = (C + ci) f(t) , where f(t) = [1 - exp (-exp(M') tA)] which increases from 0 (when t = 0) to an upper limit of one. In this form, the total variance of WTGAINi,t, at time t, can be separated into the between pig variance, sc2 [f(t)]2, and within pig variance, se2.

The inclusion of a second random effect (m'i or ai) accounts for different patterns of growth between pigs. The addition of m'i or ai as random effects with the ci effects allows increased flexibility in fitting of the between pig variance. However, the formulas for the approximate between pig variances are more complicated.

Example data. The data are from a trial in which gilts were randomly assigned to be reared from 49 d of age in either a grow-finish facility that had been completely emptied, cleaned and disinfected (all-in, all-out management, AIAO) or a continuous-flow grow-finish facility (CF). A total of 96 AIAO gilts were weighed at 49, 70, 104, 132, and 153 d of age. Also, 42 AIAO gilts had an additional weight measured at 174 d of age. A total of 96 CF gilts were weighed at 49, 70, 104, 132, 153, and 174 days of age.

Estimation. The live weight data from each group of pigs were fitted to the reparameterized fixed effects Bridges function using the non-linear mixed (NLMIXED) procedure of SAS. The additional random effects were added in a step-wise order based on Akaike’s Information Criteria (AIC) values.

The NLMIXED procedure provided predicted values for the random effect of each pig, variance estimates for each random effect, residual variance, and the estimated covariance between the random effects. Approximate standard errors of the function parameters, variance estimates and covariance estimates were provided.

Results

The AIAO and CF gilts had similar mean weights up to 104 d of age. After 104 d of age, the growth rate of the CF gilts decreased to a greater extent than the growth rate of AIAO gilts, which decreased only a small amount (Table 1). The parameter estimates and nonlinear regression statistics are presented in Table 2. The R2 and residual standard deviation (RSD) values were similar for the fixed effects functions for both groups of pigs. In each environment, the addition of a random effect ci for each pig provided the best single random effect equation. For the AIAO pigs, the value of C increased from 327.8 to 496.4 lb. Of the 96 pigs, 54 were removed at 153 d of age upon reaching a target weight of 245 lbs, and 42 remained to 174 d of age. This caused a downward bias in the magnitude of C in the fixed effects model. The mixed effects model almost entirely decreases the magnitude of such bias produced by the early removal of pigs (Schinckel and Craig, 2001). The VAR(e) and RSD values were reduced and likelihood statistics improved with the addition of the ci random effect. The approximate standard errors of M' and A were reduced for the single random effect versus the fixed effects equation.

The addition of a second random effect for m'i had a relatively lesser impact to reduce the residual variance and improve the likelihood statistics. The significance of the m'i random effect indicates pig-to-pig variation in the shape of the live weight growth curves. The random effect m'i was negatively correlated with the random effect ci (r = -0.82 and -0.76 for the AIAO and CF pigs). This correlation indicates that pigs with greater values of ci had lower values of m'i.

The SAS algorithms were not able to solve all three parameters as random effects. A form of multicolinearity existed between ai and ci. The multicolinearity was expressed through the equations F = 1 - e(1/A-1) and F = BWMAX / C, where F is the fraction of mature weight at which maximum growth rate is achieved, BWMAX is the body weight where the maximum growth rate occurs and C is the mature body weight.

The nonlinear models can be used to predict the age required for each pig to reach a specific target body weight (BW). Using the two parameter mixed model and 3.1 lb as the initial BW, the age at a specific target body weight (TBW) for pig i is ti = [(ln (1 – (TBW – 3.1)) / (C + ci)) / (-exp (M' + m'i))]1/a. The mean and variance of the predicted ti can then be investigated under the different rearing programs. The difference in the predicted days required to reach TBW increased between the AIAO and CF pigs as TBW increased from 220 to 286 lb. The variability in the predicted age to reach a TBW increased as the TBW increased and the variability increased more rapidly for the CF gilts than the AIAO gilts.

The increased standard deviation of the CF gilts compared to the AIAO gilts is partially caused by the decreasing average daily gain of CF gilts after 104 d of age. The reduced growth of the CF pigs after 104 d of age compared to the AIAO gilts makes it more difficult to achieve a target weight of 264.5 lb in the CF environment than the AIAO environment.

The random effects can be used to evaluate the growth of individual pigs or specific groups of pigs. The difference in the growth rates of the five fastest and five slowest gaining CF gilts based on the predicted age to reach 264.5 lb are shown in Figures 1 and 2. The fastest gaining CF gilts had greater average daily gain than average and five slowest growing gilts at all liveweights. The difference in growth rate between the five fastest and five slowest growing gilts primarily occurred before 104 days of age. After 104 days of age, the difference in average daily gain decreased.

The days of age to reach specific target weights was predicted for the five fastest gaining and five slowest gaining gilts to each environment based on the predicted age required to reach 264.5 lb (Table 3). The difference in age required to achieve 220 lb between the five fastest and five slowest growing gilts was similar for the two environments (38.8 and 36.6 days for the AIAO and CF pigs). The difference in age predicted to achieve 264.5 lb between the fastest and slowest growing gilts increased to 61 d in the CF environment and 53 d in the SEW environment.

Discussion

As the environmental conditions worsened, the CF gilts had more variable growth rates. This increased variation in days required to achieve specific market weights has an economic cost as most pork processors discount pigs below their specified target market weight. The economic evaluation of rearing pigs under AIAO or CF management must include both the impact of the differences in the mean performance and differences in the variation in growth.

Implications

To optimize pork production systems, swine management and marketing strategies must be refined. This requires accurate estimates of both the between pig and within pig sources of variation. Mixed model nonlinear regression analyses produce the parameters and variance-covariance estimates needed to reproduce the increasing variance and increasing serial correlations among the serial live weights as age increases.

References

Schinckel, A. P. and B. A. Craig. 2001. Nonlinear mixed effects model for swine growth. 2001 Purdue Swine Research Reports. pp 20-25.

Table 1. Means and standard deviations for liveweight, lb

 

All-in, all-out

Continuous flow

Age

N

Mean

SD

CV

N

Mean

SD

CV

49

96

46.0

5.2

11.2

96

45.7

5.0

10.9

70

96

81.2

8.3

10.2

96

80.9

7.0

8.7

104

96

148.3

11.8

7.9

96

149.7

11.7

7.8

132

96

205.0

17.6

8.6

96

198.6

17.9

9.0

153

96

253.8

18.8

7.4

96

233.9

20.0

8.5

174

42

265.2

19.9

7.5

96

250.6

22.0

8.8

 

Table 2. Parameter estimates and approximate standard errors for the Bridges Function

 

All-in all-out management

Continuous flow management

Parameter

Estimate

Approx SE

AIC

RSD

R2

Estimate

Approx SE

AIC

RSD

R2


Fixed effects model

C

327.8

12.5

2176.0

15.9

0.964

291.6

6.19

4123.6

14.55

0.965

M'

-9.93

0.272

     

-9.538

0.178

     

A

2.04

0.069

     

1.984

0.045

     

VAR (e)

249.6

19.73

     

210.45

11.91

     


Mixed effects model with ci random

C

496.37

33.2

1913.8

4.78

0.997

330.4

6.48

3643.2

5.73

0.995

M'

-9.066

0.082

     

-9.096

0.082

     

A

1.728

0.033

     

1.846

0.023

     

VAR (e)

36.05

3.73

     

44.85

3.05

     

VAR (c)

1464

300.3

     

584.5

76.2

     


Mixed effects model with ci and m'i random

C

476.8

25.3

1897.0

3.75

0.998

333.2

6.42

3581.7

4.34

0.997

M'

-9.12

0.077

     

-9.120

0.071

     

A

1.755

0.028

     

1.851

0.019

     

VAR (e)

26.23

3.02

     

30.22

2.31

     

VAR (c)

4040

1087

     

1361

256

     

VAR (m')

0.02725

0.0051

     

0.0267

0.00565

     

Covar (c, m')

-8.554

2.13

     

-4.607

1.09

     

1 The fixed effects version is weight gain from birth equals C(1 - exp(-exp(M') tA)) + e , where e is Normal with variance se2. The mixed effects model is (C + ci) (1 - exp(-exp(M') tA)) + e , where e is Normal with variance se2 and ci, the ith pig’s random effect, is Normal with variance sc2. The mixed effects model with c and m' as random effects is (C + ci) [1 – exp (-exp (M' + m'i) tA)] + e where e is Normal with variance se2 and ci and m'i are the ith pig's random effects with means 0 and variances sc2 and sm2, and with covariance of c with m sc,m.

 

Table 3. Overall means and means for the fastest and slowest growing pigsa with standard deviations for predicted age to achieve specific body weightb

 

All-in, all-out

Continuous flow

 

Age

 

Age

 

Target body weight, lb

Mean

Upper 5

Lower 5

SD

Mean

Upper 5

Lower 5

SD

220.5

138.1

121.0

159.8

8.4

144.4

123.2

159.8

10.9

242.5

149.5

130.4

175.2

9.7

160.9

134.4

180.0

16.5

264.6

161.5

139.4

192.4

11.3

177.4

146.4

207.4

19.3

286.6

174.2

149.2

211.8

13.4

199.3

154.8

258.9

22.9

a The five gilts with the least and greatest predicted days to achieve 264.5 lb live weight in each environment.
b Using Bridges mixed model equation WTi,t = (C + ci) [- exp (-exp (M' + m'i) tA)] + 3.1; ti,TBW = [(ln (1 - (TBW - 3.1)) / (C + ci)) / (- exp (M' + m'i))]1/A, where C, M' and A are mean parameter values and ci and m'i are parameters for the ith pig.

 

Figure 1

Figure 1. Average daily gain of gilts from 55 to 160 days of age. (B = lower 5%; T = upper 5%; X = mean based on predicted days to 265 lb)

 

Figure 2

Figure 2. Average daily gain of gilts as related to liveweight. (B = lower 5%; T = upper 5%; X = mean based on predicted days to 265 lb)


Index of 2002 Purdue Swine Research Articles