On this page
4.5 Applications
In this module, we present some applications to linear regression models.
4.5.1 Model Selection
Data
We use a real data set consisting of 14 variables. They are: Wear, C, Si, Mn, Cu, Cr, P, S, Ti, Graf_A, Graf_B, Graf_E, Hardness and UTS. The sample size was 54 observations.
Objective
Fit a multiple linear regression model that explains the Wear variable.
Analysis
In a first step, we check whether the data presents problems such as multicollinearity between variables, influential points, etc. Then, using variable selection techniques, we found a multiple linear regression model that best explains the wear variable.
4.5.1.1 Complete Model Adjustment
Considering the multiple linear regression model with all explanatory variables given in the data set, we initially check whether there are collinearity and multicollinearity problems between the variables involved.
Using the SoftwareAction we obtain the following results:
| C | Yes | Mn | Ass | Cr | P | S | You | GrafA | GrafB | GrafE | hardness | UTS | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C | 1 | 0.09442314 | -0.2906318 | -0.06067474 | -0.32624922 | -0.31634526 | 0.51593022 | -0.0468537 | -0.34982349 | 0.37139412 | -0.27368669 | -0.17449262 | 0.16928399 |
| Yes | 0.09442314 | 1 | -0.04125796 | 0.0455992 | -0.07804987 | -0.11790694 | 0.08139562 | 0.2663076 | -0.11055589 | 0.04726417 | -0.18830239 | 0.11150915 | -0.04917829 |
| Mn | -0.2906318 | -0.04125796 | 1 | -0.56599183 | 0.96856284 | 0.9406473 | -0.69706876 | 0.24550646 | 0.19569972 | -0.12592053 | 0.26284708 | 0.19612177 | -0.53597992 |
| Ass | -0.06067474 | 0.0455992 | -0.56599183 | 1 | -0.56978242 | -0.58176385 | 0.31436393 | -0.44962775 | 0.21908984 | -0.05591689 | -0.30324746 | -0.00707596 | 0.38123804 |
| Cr | -0.32624922 | -0.07804987 | 0.96856284 | -0.56978242 | 1 | 0.94899567 | -0.75353426 | 0.33697794 | 0.21939899 | -0.15916407 | 0.28873426 | 0.24964814 | -0.53892493 |
| P | -0.31634526 | -0.11790694 | 0.9406473 | -0.58176385 | 0.94899567 | 1 | -0.74746068 | 0.35647319 | 0.22215561 | -0.19686495 | 0.31914567 | 0.24602465 | -0.50442569 |
| S | 0.51593022 | 0.08139562 | -0.69706876 | 0.31436393 | -0.75353426 | -0.74746068 | 1 | -0.36510527 | -0.34358299 | 0.30724003 | -0.28540281 | -0.26601647 | 0.46421278 |
| You | -0.0468537 | 0.2663076 | 0.24550646 | -0.44962775 | 0.33697794 | 0.35647319 | -0.36510527 | 1 | 0.03806445 | -0.16548338 | 0.00339136 | 0.12853031 | -0.21207247 |
| GrafA | -0.34982349 | -0.11055589 | 0.19569972 | 0.21908984 | 0.21939899 | 0.22215561 | -0.34358299 | 0.03806445 | 1 | -0.66570842 | -0.22261858 | -0.02181 | -0.00581586 |
| GrafB | 0.37139412 | 0.04726417 | -0.12592053 | -0.05591689 | -0.15916407 | -0.19686495 | 0.30724003 | -0.16548338 | -0.66570842 | 1 | -0.25681866 | -0.29740824 | 0.04338497 |
Table 4.5.1: Correlation matrix for the model’s covariates.
| C | Yes | Mn | Ass | Cr | P | S | You | GrafA | GrafB | GrafE | hardness | UTS | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VIF | 1.65105887 | 1.49976786 | 27.90814433 | 2.7118774 | 28.09605187 | 14.05106142 | 3.52087768 | 2.40391041 | 4.65482723 | 3.76303727 | 2.50834051 | 1.72759085 | 1.71463326 |
Table 4.5.2: VIF of variables - diagnosis of multicollinearity.
Analyzing Table 4.5.1, we observed that the values found above 0.9 are for the covariates Cr:Mn, Cr:P and Mn:P. In Table 4.5.2 we see that the VIF value of the covariate Cr is the highest value among the calculated VIFs. Furthermore, the value found is greater than 10. Therefore, we have evidence that the covariable Cr has a multicollinearity problem. Therefore, we consider the multiple linear regression model without the covariate Cr and then recalculate the VIF values of the covariates, as shown in Table 4.5.3.
| C | Yes | Mn | Ass | P | S | You | GrafA | GrafB | GrafE | hardness | UTS | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VIF | 1.64763292 | 1.42313536 | 12.1367566 | 2.70838057 | 13.77029324 | 3.4296649 | 2.13117201 | 4.45379464 | 3.57223273 | 2.46809758 | 1.59903502 | 1.67421186 |
Table 4.5.3: VIF of the variables considering the model without the covariate Cr - diagnosis of multicollinearity.
We observe in Table 4.5.3 that the VIF value of the covariate P is the highest among the calculated VIFs. As the value found is greater than 10, we removed the covariate P from the model and recalculated the VIF values of the remaining covariates, which can be seen in Table 4.5.4.
| C | Yes | Mn | Ass | S | You | GrafA | GrafB | GrafE | hardness | UTS | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| VIF | 1.64570028 | 1.27686526 | 3.50307189 | 2.69533771 | 3.32181921 | 1.86685237 | 4.40508812 | 3.5661504 | 2.41788835 | 1.567857 | 1.67418835 |
Table 4.5.4: VIF of the variables considering the model without the covariates Cr and P - diagnosis of multicollinearity.
Analyzing Table 4.5.4 we notice that none of the calculated VIF values is greater than 10. Therefore, we have no evidence of multicollinearity between the covariates of the model in question. Therefore, we considered the model without the explanatory covariates Cr and P in subsequent analyses.
After evaluating collinearity and multicollinearity between the covariates involved, we perform an outlier diagnosis in order to detect whether any observation is an outlier and an influential point.
For an observation to be an outlier in X, hii needs to be greater than 0.44 (2(p+1)/n). We verified, through Figure 4.4.6, that an observation has a value greater than 0.44 and is therefore an outlier in
In order to confirm the graphical analysis, using the Bonferroni test in Table 4.5.5 we reject the hypothesis that observation 3 is not an outlier.
From Figure 4.4.8 we see that in addition to outliers, observation 3 is an influential point as its DFBetas values for the “Hardness” and “UTS” variables are greater than 1.
Figure 4.5.1: Boxplot (hii(Leverage)) of the data without the covariates Cr and P.
Figure 4.5.2: Standardized and studentized residuals versus adjusted values
| Note | t-Value | P-value | Bonferroni P-value |
|---|---|---|---|
| 3 | 4.5022 | 0.0001 | 0.003 |
Table 4.5.5: Bonferroni test for outliers
Figure 4.5.3: Graphs of observation influence measures
As we saw that observation 3 is an outlier and an influential point in the adjustment, we will carry out the selection of variables without considering this observation so that it does not influence the significance or otherwise of the selection of important variables for the model. In Table 4.5.6 and 4.5.7 we have the model adjustment with the estimate and significance of the parameters without considering observation 3.
Results obtained by the Action software:
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| C | 1 | 0.00447605 | 0.00447605 | 8.09763516 | 0.0068894 |
| Yes | 1 | 0.00000303 | 0.00000303 | 0.00548284 | 0.94133371 |
| Mn | 1 | 0.06679093 | 0.06679093 | 120.83167009 | 0 |
| Ass | 1 | 0.00064387 | 0.00064387 | 1.16483415 | 0.28677374 |
| S | 1 | 0.00061229 | 0.00061229 | 1.10768794 | 0.29874863 |
| You | 1 | 0.00002009 | 0.00002009 | 0.03635106 | 0.8497333 |
| GrafA | 1 | 0.00063064 | 0.00063064 | 1.14088953 | 0.29171329 |
| GrafB | 1 | 0.00000777 | 0.00000777 | 0.01405586 | 0.90620498 |
| GrafE | 1 | 0.00047844 | 0.00047844 | 0.86555506 | 0.35763462 |
| hardness | 1 | 0.00000134 | 0.00000134 | 0.00242705 | 0.96094722 |
| UTS | 1 | 0.00010105 | 0.00010105 | 0.18281548 | 0.67120214 |
| Waste | 41 | 0.02266317 | 0.00055276 |
Table 4.5.6: ANOVA table for the model without the variables Cr and P and without observation 3.
| Estimate | Standard Deviation | Stat.t | P-value | |
|---|---|---|---|---|
| Intercept | -0.63863285 | 0.38016145 | -1.67989902 | 0.10058241 |
| C | 0.10094215 | 0.08525051 | 1.18406504 | 0.24320662 |
| Yes | 0.01589209 | 0.07180176 | 0.22133285 | 0.82593193 |
| Mn | 0.45760048 | 0.07797282 | 5.86871776 | 6.7e-7 |
| Ass | 0.01174926 | 0.04297257 | 0.2734129 | 0.78590846 |
| S | -0.17395844 | 0.19752835 | -0.88067583 | 0.38362672 |
| You | -0.67971907 | 1.24182616 | -0.54735444 | 0.5871026 |
| GrafA | 0.00014646 | 0.00115258 | 0.12707244 | 0.89950424 |
| GrafB | -0.00062374 | 0.0012045 | -0.51783936 | 0.60735348 |
| GrafE | -0.00190851 | 0.00230969 | -0.82630398 | 0.41341453 |
| hardness | 0.00002041 | 0.00050686 | 0.04027472 | 0.96806959 |
| UTS | -0.00010552 | 0.00024679 | -0.42756927 | 0.67120214 |
Table 4.5.7: Model coefficients without variables Cr and P and without observation 3.
We observed that although two covariates and the outlier (observation 3) were removed from the model, there are covariates in the model that present a p-value greater than the 0.05 significance level. Methods for selecting variables will be presented below.
4.5.1.2 Variable Selection
To select the variables that explain the Wear variable, we will consider the automatic selection methods using F statistics (Stepwise, Forward and Backward) and evaluate the selection criteria of all possible models: $R^2$, $R^2_{a}$, Cp of Mallows, QME, Press, AIC and BIC.
4.5.1.2.1 Automatic Selection
From the original data, we are considering in the variable selection the data without the variables Cr and P due to multicollinearity problems and without observation 3 because this is an influential outlier.
Considering $\alpha_{entrar}=0,15$ and $\alpha_{sair}=0,2$, in the following tables we have the selection Stepwise, Forward and Backward, respectively. We noticed that in the models selected by the Stepwise, Forward and Backward methods, among the selected variables, only the Mn and C variables presented a p-value lower than 0.05, according to the 3 ANOVA tables obtained. Therefore, they are significant for the model.
Stepwise selection:
| Model(Steps) | Variable Entered | Variable Exit | F-statistic | P-Value |
|---|---|---|---|---|
| Model 1 | Mn | 142.5168 | 2.194207e-16 | |
| Selected Model | C+Si+Mn+Cu+S+Ti+GrafA+GrafB+GrafE+Hardness+UTS |
Table 4.5.8: Stepwise model selection table (F test selection criterion)
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| C | 1 | 0.00447605 | 0.00447605 | 8.09763516 | 0.0068894 |
| Yes | 1 | 0.00000303 | 0.00000303 | 0.00548284 | 0.94133371 |
| Mn | 1 | 0.06679093 | 0.06679093 | 120.83167009 | 0 |
| Ass | 1 | 0.00064387 | 0.00064387 | 1.16483415 | 0.28677374 |
| S | 1 | 0.00061229 | 0.00061229 | 1.10768794 | 0.29874863 |
| You | 1 | 0.00002009 | 0.00002009 | 0.03635106 | 0.8497333 |
| GrafA | 1 | 0.00063064 | 0.00063064 | 1.14088953 | 0.29171329 |
| GrafB | 1 | 0.00000777 | 0.00000777 | 0.01405586 | 0.90620498 |
| GrafE | 1 | 0.00047844 | 0.00047844 | 0.86555506 | 0.35763462 |
| hardness | 1 | 0.00000134 | 0.00000134 | 0.00242705 | 0.96094722 |
| UTS | 1 | 0.00010105 | 0.00010105 | 0.18281548 | 0.67120214 |
| Waste | 41 | 0.02266317 | 0.00055276 |
Table 4.5.9: ANOVA table of the model obtained by Stepwise (Selection criterion by F test)
Forward Selection:
| Model(Steps) | Variable Entered | Variable Exit | F-statistic | P-Value |
|---|---|---|---|---|
| Model 1 | Mn | 142.5168 | 2.194207e-16 | |
| Selected Model | C+Si+Mn+Cu+S+Ti+GrafA+GrafB+GrafE+Hardness+UTS |
Table 4.5.10: Model selection table by Forward (Selection criteria by F test)
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| C | 1 | 0.00447605 | 0.00447605 | 8.09763516 | 0.0068894 |
| Yes | 1 | 0.00000303 | 0.00000303 | 0.00548284 | 0.94133371 |
| Mn | 1 | 0.06679093 | 0.06679093 | 120.83167009 | 0 |
| Ass | 1 | 0.00064387 | 0.00064387 | 1.16483415 | 0.28677374 |
| S | 1 | 0.00061229 | 0.00061229 | 1.10768794 | 0.29874863 |
| You | 1 | 0.00002009 | 0.00002009 | 0.03635106 | 0.8497333 |
| GrafA | 1 | 0.00063064 | 0.00063064 | 1.14088953 | 0.29171329 |
| GrafB | 1 | 0.00000777 | 0.00000777 | 0.01405586 | 0.90620498 |
| GrafE | 1 | 0.00047844 | 0.00047844 | 0.86555506 | 0.35763462 |
| hardness | 1 | 0.00000134 | 0.00000134 | 0.00242705 | 0.96094722 |
| UTS | 1 | 0.00010105 | 0.00010105 | 0.18281548 | 0.67120214 |
| Waste | 41 | 0.02266317 | 0.00055276 |
Table 4.5.11: ANOVA table of the model obtained by Forward (Selection criterion by F test)
Backward Selection:
| Model(Steps) | Variable Exit | F-statistic | P-Value |
|---|---|---|---|
| Model 1 | hardness | 0.001622053 | 0.9680696 |
| Model 2 | GrafA | 0.014902578 | 0.9034210 |
| Model 3 | Yes | 0.045222073 | 0.8326011 |
| Model 4 | Ass | 0.146893906 | 0.7033671 |
| Model 5 | UTS | 0.173863012 | 0.6786837 |
| Model 6 | You | 0.690751167 | 0.4102024 |
| Model 7 | S | 0.904061181 | 0.3465592 |
| Model 8 | C | 0.592679530 | 0.4451572 |
| Model 9 | GrafB | 1.078111705 | 0.3042171 |
| Selected Model | C+Si+Mn+Cu+S+Ti+GrafA+GrafB+GrafE+Hardness+UTS |
Table 4.5.12: Model selection table by Backward (Selection criterion by F test)
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| C | 1 | 0.00447605 | 0.00447605 | 8.09763516 | 0.0068894 |
| Yes | 1 | 0.00000303 | 0.00000303 | 0.00548284 | 0.94133371 |
| Mn | 1 | 0.06679093 | 0.06679093 | 120.83167009 | 0 |
| Ass | 1 | 0.00064387 | 0.00064387 | 1.16483415 | 0.28677374 |
| S | 1 | 0.00061229 | 0.00061229 | 1.10768794 | 0.29874863 |
| You | 1 | 0.00002009 | 0.00002009 | 0.03635106 | 0.8497333 |
| GrafA | 1 | 0.00063064 | 0.00063064 | 1.14088953 | 0.29171329 |
| GrafB | 1 | 0.00000777 | 0.00000777 | 0.01405586 | 0.90620498 |
| GrafE | 1 | 0.00047844 | 0.00047844 | 0.86555506 | 0.35763462 |
| hardness | 1 | 0.00000134 | 0.00000134 | 0.00242705 | 0.96094722 |
| UTS | 1 | 0.00010105 | 0.00010105 | 0.18281548 | 0.67120214 |
| Waste | 41 | 0.02266317 | 0.00055276 |
Table 4.5.13: ANOVA table of the model obtained by Backward (Selection criterion by F test)
4.5.1.2.2 Selection of All Possible Models
We will then evaluate the criteria of all possible models and check those that present the best results in these criteria.
We observe from Table 4.5.14 that the models “Mn+Graf_E”, “Mn” and “Mn+Graf_A” have the lowest AIC values. Furthermore, it is worth noting that the “Mn + C” model chosen by the methods above has a small difference of 1.544. Therefore, we will check the performance of this model in relation to the other selection criteria.
In Table 4.5.15 we have the 10 models among all possible ones with the lowest BIC. We verified that the models “Mn+Graf_E”, “Mn” and “Mn+Graf_A” have the lowest BIC values. The “Mn + C” model chosen above is among the 10 best models selected with a small difference.
The models “Mn”, “Mn+Graf_A” and “Mn+Graf_E” present the lowest PRESS, as seen in Table 4.5.16. The candidate model: “Mn+C” has a difference of 0.02.
From Table 4.5.17 we observe that according to Mallows' Cp criterion, none of the five models are among the ten with the best Cp values. We observed that the “Mn+C” model occupies the 86th position as the best Mallows Cp.
Regarding the QME criterion, we observed that the values of this criterion do not differ much from one model to another. We can see from Table 4.5.18 that the “C+Mn+Graf_A” model is the model with the lowest QME. And the “Mn+C” model is in position 45º.
Through Table 4.5.19 we have the ten models with the highest $R^2$. We observed that models with higher $R^2$ are those with the largest number of variables, the reason for which we described in the “Variable Selection of the Multiple Regression Chapter”. In relation to the $R^2_a$, we observe from Table 4.5.20 that the “Mn+C” model in relation to the model with the highest $R^2_a$ do not differ much, with a difference of 0.02%.
After comparing the models and checking the fit of each one, we realized that the model indicated by the Stepwise, Forward and Backward methods obtains good values for the selection criteria, in that when it is not among the ten best models in a given criterion, it does not differ much from the best.
Thus, the model chosen and which we will adjust is “Mn + C”.
| AIC | CP | $R^2$ | $R^2$ Adjusted | BIC | PRESS | QME | |
|---|---|---|---|---|---|---|---|
| Mn + GrafE | -248.668 | -2.735 | 0.746 | 0.736 | -240.787 | 0.029 | 0.000489361 |
| Mn | -248.66 | -3.025 | 0.736 | 0.731 | -242.749 | 0.028 | 0.000498296 |
| Mn + GrafA | -248.427 | -2.533 | 0.745 | 0.735 | -240.546 | 0.028 | 0.000491594 |
| C + Mn + GrafA | -247.824 | -1.689 | 0.752 | 0.737 | -237.972 | 0.03 | 0.000488583 |
| Mn + GrafB + GrafE | -247.822 | -1.688 | 0.752 | 0.737 | -237.971 | 0.029 | 0.000488598 |
| Mn + GrafA + GrafE | -247.609 | -1.514 | 0.751 | 0.735 | -237.758 | 0.03 | 0.000490561 |
| Mn + Cu | -247.556 | -1.796 | 0.741 | 0.731 | -239.675 | 0.029 | 0.000499739 |
| Mn + S + GrafE | -247.447 | -1.381 | 0.75 | 0.735 | -237.596 | 0.03 | 0.000492063 |
| Mn + GrafB | -247.18 | -1.474 | 0.739 | 0.729 | -239.299 | 0.029 | 0.000503295 |
| Mn + S | -247.147 | -1.445 | 0.739 | 0.728 | -239.265 | 0.029 | 0.000503617 |
| C + Mn | -247.124 | -1.426 | 0.739 | 0.728 | -239.243 | 0.03 | 0.000503831889509555 |
Table 4.5.14: Selection of all possible models using the AIC criterion
| BIC | CP | $R^2$ | $R^2$ Adjusted | AIC | PRESS | QME | |
|---|---|---|---|---|---|---|---|
| Mn | -242.749 | -3.025 | 0.736 | 0.731 | -248.66 | 0.028 | 0.000498296 |
| Mn + GrafE | -240.787 | -2.735 | 0.746 | 0.736 | -248.668 | 0.029 | 0.000489361 |
| Mn + GrafA | -240.546 | -2.533 | 0.745 | 0.735 | -248.427 | 0.028 | 0.000491594 |
| Mn + Cu | -239.675 | -1.796 | 0.741 | 0.731 | -247.556 | 0.029 | 0.000499739 |
| Mn + GrafB | -239.299 | -1.474 | 0.739 | 0.729 | -247.18 | 0.029 | 0.000503295 |
| Mn + S | -239.265 | -1.445 | 0.739 | 0.728 | -247.147 | 0.029 | 0.000503617 |
| C + Mn | -239.243 | -1.426 | 0.739 | 0.728 | -247.124 | 0.03 | 0.000503832 |
| Mn + UTS | -239.096 | -1.3 | 0.738 | 0.728 | -246.978 | 0.03 | 0.000505225 |
| Si + Mn | -238.88 | -1.113 | 0.737 | 0.726 | -246.761 | 0.029 | 0.00050729 |
| Mn + Ti | -238.81 | -1.052 | 0.737 | 0.726 | -246.691 | 0.03 | 0.000507962 |
Table 4.5.15: Selection of all possible models using the BIC criterion
| PRESS | CP | R^2 | Adjusted R^2 | AIC | BIC | QME | |
|---|---|---|---|---|---|---|---|
| Mn | 0.028 | -3.025 | 0.736 | 0.731 | -248.66 | -242.749 | 0.000498296 |
| Mn + GrafA | 0.028 | -2.533 | 0.745 | 0.735 | -248.427 | -240.546 | 0.000491594 |
| Mn + GrafE | 0.029 | -2.735 | 0.746 | 0.736 | -248.668 | -240.787 | 0.000489361 |
| Mn + Cu | 0.029 | -1.796 | 0.741 | 0.731 | -247.556 | -239.675 | 0.000499739 |
| Mn + GrafB | 0.029 | -1.474 | 0.739 | 0.729 | -247.18 | -239.299 | 0.000503295 |
| Mn + S | 0.029 | -1.445 | 0.739 | 0.728 | -247.147 | -239.265 | 0.000503617 |
| Si + Mn | 0.029 | -1.113 | 0.737 | 0.726 | -246.761 | -238.88 | 0.00050729 |
| Mn + Hardness | 0.029 | -1.041 | 0.737 | 0.726 | -246.679 | -238.797 | 0.000508084 |
| Mn + GrafB + GrafE | 0.029 | -1.688 | 0.752 | 0.737 | -247.822 | -237.971 | 0.000488598 |
| C + Mn | 0.03 | -1.426 | 0.739 | 0.728 | -247.124 | -239.243 | 0.000503832 |
Table 4.5.16: Selection of all possible models using the PRESS criterion
| CP | R^2 | Adjusted R^2 | AIC | BIC | PRESS | QME | |
|---|---|---|---|---|---|---|---|
| C + Si + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 12 | 0.765 | 0.702 | -234.73 | -209.116 | 0.042 | 0.00055276 |
| C + Si + Mn + Cu + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 10.776 | 0.761 | 0.704 | -235.737 | -212.093 | 0.041 | 0.000549807 |
| C + Si + Mn + Cu + S + Ti + GrafA + GrafB + Hardness + UTS | 10.683 | 0.761 | 0.704 | -235.854 | -212.211 | 0.04 | 0.000548585 |
| Si + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 11.402 | 0.757 | 0.699 | -234.948 | -211.304 | 0.04 | 0.000558051 |
| C + Si + Mn + Cu + S + GrafA + GrafB + GrafE + Hardness + UTS | 10.3 | 0.763 | 0.707 | -236.344 | -212.7 | 0.038 | 0.000543542 |
| C + Si + Mn + Cu + S + Ti + GrafA + GrafE + Hardness + UTS | 10.268 | 0.763 | 0.707 | -236.384 | -212.741 | 0.04 | 0.000543128 |
| C + Si + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + Hardness | 10.183 | 0.764 | 0.708 | -236.494 | -212.85 | 0.039 | 0.000542005 |
| C + Si + Mn + S + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 10.075 | 0.765 | 0.708 | -236.633 | -212.99 | 0.04 | 0.000540583 |
| C + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 10.049 | 0.765 | 0.709 | -236.666 | -213.023 | 0.04 | 0.000540244 |
| C + Si + Mn + Cu + S + Ti + GrafB + GrafE + Hardness + UTS | 10.016 | 0.765 | 0.709 | -236.709 | -213.065 | 0.04 | 0.000539812 |
| $\ldots$ | |||||||
| C + Mn | -1.426 | 0.739 | 0.728 | -247.124 | -239.243 | 0.03 | 0.000503831889509555 |
Table 4.5.17: Selection of all possible models using the Cp criterion
| QME | CP | R^2 | Adjusted R^2 | AIC | BIC | PRESS | |
|---|---|---|---|---|---|---|---|
| C + Mn + GrafA | 0.000488583 | -1.689 | 0.752 | 0.737 | -247.824 | -237.972 | 0.03 |
| Mn + GrafB + GrafE | 0.000488598 | -1.688 | 0.752 | 0.737 | -247.822 | -237.971 | 0.029 |
| Mn + GrafE | 0.000489361 | -2.735 | 0.746 | 0.736 | -248.668 | -240.787 | 0.029 |
| Mn + GrafA + GrafE | 0.000490561 | -1.514 | 0.751 | 0.735 | -247.609 | -237.758 | 0.03 |
| Mn + GrafA | 0.000491594 | -2.533 | 0.745 | 0.735 | -248.427 | -240.546 | 0.028 |
| C + Mn + GrafA + UTS | 0.000491737 | -0.299 | 0.755 | 0.735 | -246.575 | -234.754 | 0.031 |
| Mn + S + GrafE | 0.000492063 | -1.381 | 0.75 | 0.735 | -247.447 | -237.596 | 0.03 |
| C + Mn + S + GrafA | 0.000492127 | -0.265 | 0.755 | 0.735 | -246.533 | -234.712 | 0.03 |
| C + Mn + GrafB + GrafE | 0.000492693 | -0.216 | 0.755 | 0.734 | -246.472 | -234.651 | 0.031 |
| C + Mn + GrafA + GrafE | 0.00049335 | -0.159 | 0.754 | 0.734 | -246.402 | -234.58 | 0.031 |
| $\ldots$ | |||||||
| C + Mn | 0.00050383188951 | -1.426 | 0.739 | 0.728 | -247.124 | -239.243 | 0.03 |
Table 4.5.18: Selection of all possible models using the QME criterion
| R^2 | CP | Adjusted R^2 | AIC | BIC | PRESS | QME | |
|---|---|---|---|---|---|---|---|
| C + Mn + Cu + S + Ti + GrafB + GrafE + UTS | 0.765 | 6.059 | 0.722 | -240.653 | -220.95 | 0.037 | 0.000515817 |
| C + Si + Mn + Cu + S + Ti + GrafB + GrafE + UTS | 0.765 | 8.016 | 0.716 | -238.709 | -217.036 | 0.039 | 0.000527258 |
| C + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + UTS | 0.765 | 8.054 | 0.715 | -238.66 | -216.987 | 0.039 | 0.000527742 |
| C + Mn + Cu + S + Ti + GrafB + GrafE + Hardness + UTS | 0.765 | 8.057 | 0.715 | -238.656 | -216.982 | 0.038 | 0.000527789 |
| C + Si + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + UTS | 0.765 | 10.002 | 0.709 | -236.728 | -213.084 | 0.04 | 0.000539621 |
| C + Si + Mn + Cu + S + Ti + GrafB + GrafE + Hardness + UTS | 0.765 | 10.016 | 0.709 | -236.709 | -213.065 | 0.04 | 0.000539812 |
| C + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 0.765 | 10.049 | 0.709 | -236.666 | -213.023 | 0.04 | 0.000540244 |
| C + Si + Mn + S + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 0.765 | 10.075 | 0.708 | -236.633 | -212.99 | 0.04 | 0.000540583 |
| C + Si + Mn + Cu + S + Ti + GrafA + GrafB + GrafE + Hardness + UTS | 0.765 | 12 | 0.702 | -234.73 | -209.116 | 0.042 | 0.00055276 |
| C + Mn + S + Ti + GrafB + GrafE + UTS | 0.764 | 4.196 | 0.727 | -242.476 | -224.744 | 0.036 | 0.000506038 |
Table 4.5.19: Selection of all possible models by criteria $R^2$
| Adjusted R^2 | CP | R^2 | AIC | BIC | PRESS | QME | |
|---|---|---|---|---|---|---|---|
| C + Mn + GrafA | 0.737 | -1.689 | 0.752 | -247.824 | -237.972 | 0.03 | 0.000488583 |
| Mn + GrafB + GrafE | 0.737 | -1.688 | 0.752 | -247.822 | -237.971 | 0.029 | 0.000488598 |
| Mn + GrafE | 0.736 | -2.735 | 0.746 | -248.668 | -240.787 | 0.029 | 0.000489361 |
| Mn + GrafA | 0.735 | -2.533 | 0.745 | -248.427 | -240.546 | 0.028 | 0.000491594 |
| Mn + GrafA + GrafE | 0.735 | -1.514 | 0.751 | -247.609 | -237.758 | 0.03 | 0.000490561 |
| Mn + S + GrafE | 0.735 | -1.381 | 0.75 | -247.447 | -237.596 | 0.03 | 0.000492063 |
| C + Mn + GrafA + UTS | 0.735 | -0.299 | 0.755 | -246.575 | -234.754 | 0.031 | 0.000491737 |
| C + Mn + S + GrafA | 0.735 | -0.265 | 0.755 | -246.533 | -234.712 | 0.03 | 0.000492127 |
| C + Mn + GrafB + GrafE | 0.734 | -0.216 | 0.755 | -246.472 | -234.651 | 0.031 | 0.000492693 |
| C + Mn + GrafA + GrafE | 0.734 | -0.159 | 0.754 | -246.402 | -234.58 | 0.031 | 0.00049335 |
| $\ldots$ | |||||||
| C + Mn | 0.728 | -1.426 | 0.739 | -247.124 | -239.243 | 0.03 | 0.00050383188951 |
Table 4.5.20: Selection of all possible models by criteria $R^2_a$
4.5.1.3 Final Model
When adjusting the model with the variable Mn and C as explanations of the wear variable, we observed that the model is significant and at a significance level of at least 5%, the two variables are important for the model, as we can see in Table 4.5.21.
In Table 4.5.23 we have the confidence interval for the parameters. For the variable Mn, for example, we have 95% confidence that the real value of the parameter is between 0.398 and 0.566.
In Table 4.5.24 we have the values adjusted through the model under consideration and also the confidence interval for the predicted values.
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| C | 1 | 0.0045 | 0.0045 | 8.884 | 0.0044 |
| Mn | 1 | 0.0668 | 0.0668 | 132.5066 | 0 |
| Waste | 50 | 0.0252 | 0.0005 |
Table 4.5.21: Anova of the adjusted model
| Estimate | Standard Deviation | Stat.t | P-value | |
|---|---|---|---|---|
| Intercept | -0.4738 | 0.2434 | -1.9471 | 0.0572 |
| C | 0.0444 | 0.067 | 0.6631 | 0.5103 |
| Mn | 0.4822 | 0.0419 | 11.5112 | 0 |
Table 4.5.22: Estimation and significance of parameters
| 2.5 % | 97.5 % | |
|---|---|---|
| Intercept | -0.9626 | 0.015 |
| C | -0.0901 | 0.179 |
| Mn | 0.3981 | 0.5664 |
Table 4.5.23: Confidence Interval for parameters
| Wear | C | Mn | Adjusted Value | Lower Limit | Upper Limit | Standard Deviation | |
|---|---|---|---|---|---|---|---|
| 1 | 0.017 | 3.42 | 0.71 | 0.0204 | 0.0104 | 0.0305 | 0.005 |
| 2 | 0.0153 | 3.42 | 0.71 | 0.0204 | 0.0104 | 0.0305 | 0.005 |
| 3 | 0.034 | 3.36 | 0.71 | 0.0178 | 0.0013 | 0.0343 | 0.0082 |
| 4 | 0.0309 | 3.36 | 0.71 | 0.0178 | 0.0013 | 0.0343 | 0.0082 |
| 5 | 0.016 | 3.42 | 0.71 | 0.0204 | 0.0104 | 0.0305 | 0.005 |
| 6 | 0.0158 | 3.42 | 0.71 | 0.0204 | 0.0104 | 0.0305 | 0.005 |
| 7 | 0.0037 | 3.42 | 0.72 | 0.0253 | 0.0157 | 0.0348 | 0.0048 |
| 8 | 0.0108 | 3.42 | 0.72 | 0.0253 | 0.0157 | 0.0348 | 0.0048 |
| 9 | 0.0033 | 3.45 | 0.72 | 0.0266 | 0.0191 | 0.0341 | 0.0038 |
| 10 | 0.0065 | 3.45 | 0.72 | 0.0266 | 0.0191 | 0.0341 | 0.0038 |
| 11 | 0.0079 | 3.5 | 0.7 | 0.0192 | 0.0102 | 0.0282 | 0.0045 |
| 12 | 0.005 | 3.5 | 0.7 | 0.0192 | 0.0102 | 0.0282 | 0.0045 |
| 13 | 0.0085 | 3.5 | 0.7 | 0.0192 | 0.0102 | 0.0282 | 0.0045 |
| 14 | 0.0189 | 3.5 | 0.7 | 0.0192 | 0.0102 | 0.0282 | 0.0045 |
| 15 | 0.0131 | 3.5 | 0.7 | 0.0192 | 0.0102 | 0.0282 | 0.0045 |
| $\cdots$ | |||||||
| 45 | 0.144 | 3.41 | 0.87 | 0.0972 | 0.0861 | 0.1083 | 0.0055 |
| 46 | 0.098 | 3.41 | 0.87 | 0.0972 | 0.0861 | 0.1083 | 0.0055 |
| 47 | 0.095 | 3.41 | 0.87 | 0.0972 | 0.0861 | 0.1083 | 0.0055 |
| 48 | 0.0826 | 3.49 | 0.75 | 0.0428 | 0.0354 | 0.0503 | 0.0037 |
| 49 | 0.0792 | 3.41 | 0.854 | 0.0894 | 0.0791 | 0.0998 | 0.0051 |
| 50 | 0.0528 | 3.41 | 0.854 | 0.0894 | 0.0791 | 0.0998 | 0.0051 |
| 51 | 0.0722 | 3.41 | 0.854 | 0.0894 | 0.0791 | 0.0998 | 0.0051 |
| 52 | 0.1062 | 3.49 | 0.99 | 0.1586 | 0.1371 | 0.1801 | 0.0107 |
| 53 | 0.0992 | 3.5 | 0.87 | 0.1012 | 0.0878 | 0.1145 | 0.0066 |
Table 4.5.24: Adjusted value and Confidence Interval
4.5.1.4 Model Diagnosis
For the adjusted model to be reliable, the assumptions described in Model Diagnosis cannot be violated. To do this, we will check whether the variables Mn and C are correlated and also check the residual assumptions.
In Table 4.5.25 we have that no correlation between the variables is greater, in modulus, than 0.95 and also, from Table 4.5.26, that no VIF is greater than 10. Thus, we do not have a problem of high correlation between the variables.
To check whether there are outliers, we analyze whether each observation is an outlier in But using the Bonferroni test in Table 4.5.28 we have that they are not outliers as we do not reject the hypothesis that the observations are not outliers.
In the analysis of the residuals, we have in Table 4.5.27 descriptive measures of the residuals in which we perceive values close to 0. Furthermore, we see in Table 4.5.29 that the residuals are normally distributed by the Anderson Darling test with a significance level of up to 5% but by the Kolmogorov test the significance level can be up to 2%.
From Tables 4.5.30 and 4.5.31 we have that the residuals are homoscedastic at a significance level of up to 10% in the Goldfeld Quandt test and up to 20% in the Breusch Pagan test. Regarding the test of independence, we have that the Durbin Watson statistic, Table 4.5.32, is close to 2 and we also do not reject the hypothesis of independence of the residuals by observing the p-value of the test.
Finally, from Table 4.5.33 we have that at a significance level of up to 5%, we do not reject the hypothesis that the adjusted model is adequate.
| C | Mn | |
|---|---|---|
| C | 1 | -0.3043 |
| Mn | -0.3043 | 1 |
Table 4.5.25: Correlation Matrix
| C | Mn | |
|---|---|---|
| VIF | 1.102 | 1.102 |
Table 4.5.26: VIF of variables
| Minimum | 1Q | Median | Average | 3Q | Maximum |
|---|---|---|---|---|---|
| -0.0524 | -0.0138 | -0.0044 | 0 | 0.0141 | 0.0587 |
Table 5.4.27: Descriptive measures of waste
Figure 4.5.4: Waste Analysis
Figure 4.5.5: Boxplot of hii
| Note | t-Value | P-value | Bonferroni P-value |
|---|---|---|---|
| 30 | 2.8713 | 0.006 | 0.3192 |
Table 4.5.28: Bonferroni Test for Outliers
| Statistics | P-value | |
|---|---|---|
| Anderson-Darling | 0.7299 | 0.0537 |
| Shapiro-Wilk | 0.9659 | 0.1343 |
| Kolmogorov-Smirnov | 0.1304 | 0.025 |
| Ryan-Joiner | 0.9811 | 0.0923 |
Table 4.5.29: Normality Tests
| Statistics | GL | P-value |
|---|---|---|
| 1.7543 | 1 | 0.1853 |
Table 4.5.30: Homoscedasticity Test - Breusch Pagan
| Variable | Statistics | GL1 | GL2 | P-value |
|---|---|---|---|---|
| C | 2.25979800183115 | 19 | 18 | 0.0898482864685096 |
| Mn | 7.34372290988136 | 19 | 18 | 9.17949982925794e-05 |
Table 4.5.31: Homoscedasticity Test - Goldfeld Quandt
| Statistics | P-value |
|---|---|
| 1.7983 | 0.3323 |
Table 4.5.32: Durbin-Watson Test of Independence
| GL | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| C | 1 | 0.0045 | 0.0045 | 20.119 | 0.0001 |
| Mn | 1 | 0.0668 | 0.0668 | 300.0777 | 0 |
| Waste | 50 | 0.0252 | 0.0005 | ||
| Lack of Adjustment | 25 | 0.0196 | 0.0008 | 3.5293 | 0.0012 |
| Pure Error | 25 | 0.0056 | 0.0002 |
Table 4.5.33: Lack of Fit Test
4.5.2 Linear model for tissue shortage periods
According to EMEA (European Medicines Evaluation Agency, veterinary medicines evaluation unit), the model for statistical determination of the safety period is based on the acceptance of pharmacokinetic principles. According to the compartment model of pharmacokinetics, the relationship between drug concentration and time through all phases of absorption, distribution, and elimination is generally described by multiexponential mathematical terms. However, the terminal elimination of drugs from tissues, residue depletion, in most cases follows a simple (univariate) model and is sufficiently described by an exponential term. The equation is described as follows:
$$C_t=C_0 e^{-k t}$$
in which
-
$C_t$ is the concentration at time t;
-
$C_0$ fictitious concentration at time t=0;
-
$k$ is the constant elimination rate.
The linearity of the $\ln C$ versus time indicates that the model for residual depletion is applicable a linear regression analysis of the log transformed data and we consider it for the calculation of withdrawal periods.
Simple linear regression requires some assumptions (for more details see statistical model). Typically, residue depletion data meet these assumptions because they originate from individual animals.
The EMEA article mentions that the FDA (Food and Drug Administration) recommends excluding data observed below the detection limit from the calculation. The low concentrations are due to actual empirical observations that should not be ignored. According to EMEA, data that is below the detection or quantification limit is recommended to be replaced by half of the respective limit. Alternatively, special procedures can be applied in order to estimate expected values for missing data.
This article also mentions the need for at least 3 animals for each slaughter time in the log linear phase of terminal waste disposal.
The data were constructed from an empirical residue depletion study on cattle treated subcutaneously with a veterinary drug and were used to demonstrate the applicability of the statistical model for estimating withdrawal periods. Residue data for the marker residue in the target liver and fat tissues are listed in table 4.5.34. An ADI of 35 μg/kg per day for a 60 kg person, which was assumed for total residue. The MRLs for marker residue were then set at 30 μg/kg and 20 μg/kg for liver and fat, respectively.
| N | Pos_Dose | Liver | Fat |
|---|---|---|---|
| 1 | 7 | 85,5 | 96,8 |
| 2 | 7 | 141,8 | 225 |
| 3 | 7 | 198 | 213,8 |
| 4 | 7 | 31,5 | 48,3 |
| 5 | 7 | 119,3 | 119,3 |
| 6 | 7 | 108 | 204,8 |
| 7 | 7 | 171 | 157,5 |
| 8 | 7 | 34,5 | 450 |
| 9 | 7 | 189 | 65,3 |
| 10 | 7 | 67,5 | 195,8 |
| 11 | 7 | 135 | 148,5 |
| 12 | 7 | 150,8 | 202,5 |
| 13 | 14 | 1 | 1 |
| 14 | 14 | 22,5 | 11,3 |
| 15 | 14 | 60,8 | 78,8 |
| 16 | 14 | 60,8 | 51,8 |
| 17 | 14 | 47,3 | 33,8 |
| 18 | 14 | 22,5 | 24,8 |
| 19 | 14 | 11,3 | 2,3 |
| 20 | 14 | 22,5 | 15,8 |
| 21 | 14 | 49,5 | 51,8 |
| 22 | 14 | 22,5 | 13,5 |
| 23 | 14 | 40,5 | 22,5 |
| 24 | 14 | 29,3 | 42,8 |
| 25 | 21 | 36 | 27 |
| 26 | 21 | 9 | 9 |
| 27 | 21 | 9 | 6,8 |
| 28 | 21 | 6,8 | 6,8 |
| 29 | 21 | 18 | 6,8 |
| 30 | 21 | 6,8 | 11,3 |
| 31 | 21 | 108 | 40,5 |
| 32 | 21 | 11,3 | 9 |
| 33 | 21 | 2,3 | 4,5 |
| 34 | 21 | 2,3 | 9 |
| 35 | 21 | 24,8 | 9 |
| 36 | 21 | 2,3 | 1 |
| 37 | 28 | 4,5 | 4,5 |
| 38 | 28 | 2,3 | 4,5 |
| 39 | 28 | 11,3 | 9 |
| 40 | 28 | 9 | 6,8 |
| 41 | 28 | 1 | 1 |
| 42 | 28 | 4,5 | 4,5 |
| 43 | 28 | 1 | 1 |
| 44 | 28 | 1 | 1 |
| 45 | 28 | 2,3 | 4,5 |
| 46 | 28 | 6,8 | 9 |
| 47 | 28 | 13,5 | 13,5 |
| 48 | 28 | 1 | 1 |
| 49 | 35 | NA | 2 |
| 50 | 35 | NA | 4,5 |
| 51 | 35 | NA | 2 |
| 52 | 35 | NA | 2 |
| 53 | 35 | NA | 4,5 |
| 54 | 35 | NA | 2 |
| 55 | 35 | NA | 2 |
| 56 | 35 | NA | 2 |
| 57 | 35 | NA | 2 |
| 58 | 35 | NA | 2 |
| 59 | 35 | NA | 2 |
| 60 | 35 | NA | 2 |
Table 4.5.34: Marker residue in liver tissues and target fats.
In the EMEA article, it mentions some fundamental steps for analyzing this type of data set and they are:
Step 1: Data inspection.
Step 2: Calculation of linear regression parameters from log transformed data.
Step 3: Visual inspection of the regression line.
Step 4: Homogeneity of variances.
Step 5: Lack of Fit Test.
Step 6: Calculation of residuals and graphs of diagnostic analysis according to FDA 1983 recommendation.
Step 7: Calculation of unilateral upper limit tolerances of 95% (European Union) or 99% (USA) (both with a 95% confidence level).
Step 8: Determination of the safety period (grace period for waste depletion)
4.5.2.1 Analysis for liver tissues
The assessment of human food safety is part of the approval process for medicines of animal origin intended for use in food-producing animals. The risk assessment approach is used to evaluate the safety of human food from animal sources for drug residues.
The danger of drugs of animal origin is identified and characterized based on microbial food safety and toxicological information, as well as the exposure of the danger to humans is investigated by information from chemical residue studies.
To study these chemical residues, we consider two variables Pos_Dose (days after the dose was applied) and log_fig (logarithm of the concentration of residues in the liver tissue), in this case, we can establish a simple linear regression whose statistical model is
$$Y_{i}=\beta_0+\beta_1~x_{i}+\varepsilon_{ij}\quad i=1,\cdots, n; \tag{5.3.1.1}$$
in which,
-
$Y_{ij}$: represents the j-th measurement of the logarithm of the concentration of residues in the liver tissue referring to the ith day after applying the dose;
-
$X_{i}$: represents the i-th day after applying the dose;
-
$\beta_0$: represents the linear coefficient or intercept (fictitious concentration at time t=0);
-
$\beta_1$: represents the angular coefficient;
-
$\varepsilon_{ij}$: represents the j-th error made in measuring the i-th logarithm of waste concentration in liver tissue. We consider that the $\varepsilon_{ij}$ are independent and identically distributed with distribution $N(0,\sigma^2)$.
For the data in Table 4.5.34, let’s follow step 1 and inspect the data.
Step 1: Data inspection.
In this step it is essential to check the data below the detection limit and according to EMEA, for this data we define these values as half the detection limit.
Specifically for this data set, for the fat variable, day 35 was excluded from the calculation because of many values below the detection limit (10 out of 12 observations). Liver data on day 35 were not available.
With this, we have the following set of data:
| N | Pos_Dose | log_fig |
|---|---|---|
| 1 | 7 | 4,448516 |
| 2 | 7 | 4,954418 |
| 3 | 7 | 5,288267 |
| 4 | 7 | 3,449988 |
| 5 | 7 | 4,781641 |
| 6 | 7 | 4,682131 |
| 7 | 7 | 5,141664 |
| 8 | 7 | 3,540959 |
| 9 | 7 | 5,241747 |
| 10 | 7 | 4,212128 |
| 11 | 7 | 4,905275 |
| 12 | 7 | 5,015954 |
| 13 | 14 | 0 |
| 14 | 14 | 3,113515 |
| 15 | 14 | 4,10759 |
| 16 | 14 | 4,10759 |
| 17 | 14 | 3,85651 |
| 18 | 14 | 3,113515 |
| 19 | 14 | 2,424803 |
| 20 | 14 | 3,113515 |
| 21 | 14 | 3,901973 |
| 22 | 14 | 3,113515 |
| 23 | 14 | 3,701302 |
| 24 | 14 | 3,377588 |
| 25 | 21 | 3,583519 |
| 26 | 21 | 2,197225 |
| 27 | 21 | 2,197225 |
| 28 | 21 | 1,916923 |
| 29 | 21 | 2,890372 |
| 30 | 21 | 1,916923 |
| 31 | 21 | 4,682131 |
| 32 | 21 | 2,424803 |
| 33 | 21 | 0,832909 |
| 34 | 21 | 0,832909 |
| 35 | 21 | 3,210844 |
| 36 | 21 | 0,832909 |
| 37 | 28 | 1,504077 |
| 38 | 28 | 0,832909 |
| 39 | 28 | 2,424803 |
| 40 | 28 | 2,197225 |
| 41 | 28 | 0 |
| 42 | 28 | 1,504077 |
| 43 | 28 | 0 |
| 44 | 28 | 0 |
| 45 | 28 | 0,832909 |
| 46 | 28 | 1,916923 |
| 47 | 28 | 2,60269 |
| 48 | 28 | 0 |
Table 4.5.35: Marker residue in liver tissues.
Now, let’s go to step 2.
Step 2: Calculation of linear regression parameters from log transformed data.
Solution:
| N | Pos_Dose | log_fig | Pos_Dose^2 | log_fig^2 | Pos_Dose x log_fig |
|---|---|---|---|---|---|
| 1 | 7 | 4,448516 | 49 | 19,7893 | 31,13961463 |
| 2 | 7 | 4,954418 | 49 | 24,54625 | 34,6809233 |
| 3 | 7 | 5,288267 | 49 | 27,96577 | 37,01786921 |
| 4 | 7 | 3,449988 | 49 | 11,90241 | 24,14991282 |
| 5 | 7 | 4,781641 | 49 | 22,86409 | 33,4714893 |
| 6 | 7 | 4,682131 | 49 | 21,92235 | 32,77491859 |
| 7 | 7 | 5,141664 | 49 | 26,4367 | 35,9916449 |
| 8 | 7 | 3,540959 | 49 | 12,53839 | 24,78671527 |
| 9 | 7 | 5,241747 | 49 | 27,47591 | 36,69222911 |
| 10 | 7 | 4,212128 | 49 | 17,74202 | 29,48489319 |
| 11 | 7 | 4,905275 | 49 | 24,06172 | 34,33692345 |
| 12 | 7 | 5,015954 | 49 | 25,1598 | 35,11168119 |
| 13 | 14 | 0 | 196 | 0 | 0 |
| 14 | 14 | 3,113515 | 196 | 9,693978 | 43,58921433 |
| 15 | 14 | 4,10759 | 196 | 16,87229 | 57,50625705 |
| 16 | 14 | 4,10759 | 196 | 16,87229 | 57,50625705 |
| 17 | 14 | 3,85651 | 196 | 14,87267 | 53,99114414 |
| 18 | 14 | 3,113515 | 196 | 9,693978 | 43,58921433 |
| 19 | 14 | 2,424803 | 196 | 5,879668 | 33,94723816 |
| 20 | 14 | 3,113515 | 196 | 9,693978 | 43,58921433 |
| 21 | 14 | 3,901973 | 196 | 15,22539 | 54,62761737 |
| 22 | 14 | 3,113515 | 196 | 9,693978 | 43,58921433 |
| 23 | 14 | 3,701302 | 196 | 13,69964 | 51,81822764 |
| 24 | 14 | 3,377588 | 196 | 11,4081 | 47,28622522 |
| 25 | 21 | 3,583519 | 441 | 12,84161 | 75,25389771 |
| 26 | 21 | 2,197225 | 441 | 4,827796 | 46,14171612 |
| 27 | 21 | 2,197225 | 441 | 4,827796 | 46,14171612 |
| 28 | 21 | 1,916923 | 441 | 3,674592 | 40,25537486 |
| 29 | 21 | 2,890372 | 441 | 8,354249 | 60,69780692 |
| 30 | 21 | 1,916923 | 441 | 3,674592 | 40,25537486 |
| 31 | 21 | 4,682131 | 441 | 21,92235 | 98,32475577 |
| 32 | 21 | 2,424803 | 441 | 5,879668 | 50,92085724 |
| 33 | 21 | 0,832909 | 441 | 0,693738 | 17,49109158 |
| 34 | 21 | 0,832909 | 441 | 0,693738 | 17,49109158 |
| 35 | 21 | 3,210844 | 441 | 10,30952 | 67,42771672 |
| 36 | 21 | 0,832909 | 441 | 0,693738 | 17,49109158 |
| 37 | 28 | 1,504077 | 784 | 2,262249 | 42,11416711 |
| 38 | 28 | 0,832909 | 784 | 0,693738 | 23,32145544 |
| 39 | 28 | 2,424803 | 784 | 5,879668 | 67,89447632 |
| 40 | 28 | 2,197225 | 784 | 4,827796 | 61,52228817 |
| 41 | 28 | 0 | 784 | 0 | 0 |
| 42 | 28 | 1,504077 | 784 | 2,262249 | 42,11416711 |
| 43 | 28 | 0 | 784 | 0 | 0 |
| 44 | 28 | 0 | 784 | 0 | 0 |
| 45 | 28 | 0,832909 | 784 | 0,693738 | 23,32145544 |
| 46 | 28 | 1,916923 | 784 | 3,674592 | 53,67383314 |
| 47 | 28 | 2,60269 | 784 | 6,773994 | 72,87531119 |
| 48 | 28 | 0 | 784 | 0 | 0 |
| Sum | 840 | 134,9284 | 17640 | 501,4721 | 1885,408284 |
| Average | 17,5 | 2,811008 |
Table 4.5.36: Transformed data
The sample means of the variables Days after dose application (X) and Logarithm of residue concentration in liver tissue (Y) are, respectively,
$$\overline{x}=\dfrac{1}{48}\sum_{i=1}^{48}x_i=17,5\quad\text{e}\quad\overline{y}=\dfrac{1}{48}\sum_{i=1}^{48} y_i=2,811008.$$
Furthermore, in Table 4.5.37, we present the values of $x^2$, $y^2$ and $xy$ for each observation $i=1,…,48$.
From the table we calculate the sums of squares as follows:
$$S_{xx}=\sum^n_{i=1}x_i^2-n\overline{x}^2=17640-48\times 17,5^2=2940$$
$$S_{yy}=\sum^n_{i=1}y_i^2-n\overline{y}^2= 501,4721 - 48 \times 2,811008^2=122,1872$$
$$S_{xy}=\sum^n_{i=1}x_i y_i-n\overline{x}\overline{y}=1885,408284 - 48 \times 17,5 \times 2,811008=-475,839.$$
Therefore, the parameter estimates $\beta_{1}$ and $\beta_{0}$ are, respectively
$$\widehat\beta_1=\dfrac{S_{xy}}{S_{xx}}=\dfrac{-475,839}{2940}=-0,16185\quad\text{e }\quad\widehat\beta_0=\overline{y}-\widehat{\beta_1}\overline{x}=2,811008-(-0,16185)\times 17,5=5,643382.$$
Therefore, the adjusted model is given by
$$\log(\text{fígado})~=~5,64~-0,16~\times{Pos}_{\text{dose}}.$$
With this, we have the following results obtained by the Action software.
| G.L. | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Pos.Dose | 1 | 77.01448437 | 77.01448437 | 78.42490411 | 0 |
| Waste | 46 | 45.17272059 | 0.98201567 |
Table 4.5.37: ANOVA table
| Minimum | 1Q | Median | Average | 3Q | Maximum |
|---|---|---|---|---|---|
| -3.37748331 | -0.32761073 | 0.0859014 | 0 | 0.64218648 | 2.43759727 |
Table 4.5.38: Exploratory Analysis (residues)
| Estimate | Standard Deviation | Stat.t | P-value | |
|---|---|---|---|---|
| Intercept | 5.64338246 | 0.35035976 | 16.10739354 | 0 |
| Pos.Dose | -0.16184994 | 0.01827618 | -8.85578365 | 0 |
Table 4.5.39: Coefficients
| Standard Deviation of Residues | Degrees of Freedom | $R^2$ | $R^2$ Adjusted |
|---|---|---|---|
| 0.99096704 | 46 | 0.63029909 | 0.62226212 |
Table 4.5.40: Descriptive Measure of Quality of Fit
Step 3: Visual inspection of the regression line.
Both the regression line for liver and the regression line for fat passed through all slaughter groups. No time points should be deleted at the end or beginning of the line.
Step 4: Homogeneity of variances.
Next, we present some tests obtained by the Action software. EMEA cites some statistics, such as the Cochran test, while MAPA cites the Brown-Forsythe test.
With this, we tested the following hypothesis:
$$\begin{cases} H_0:\sigma^2_1=\sigma^2_2 = … =\sigma^2_k \cr H_1:\hbox{pelo menos um dos}~\sigma_i^2\hbox{’s diferente,} \quad i=1,\ldots,k. \cr \end{cases} $$
| Statistics | Number of Replicas | P-value |
|---|---|---|
| 0.34456467 | 12 | 0.60736705 |
Table 4.5.41: Homoscedasticity Test - Cochran
| Variable | Statistics | G.L.Num. | G.L. Den. | P-value |
|---|---|---|---|---|
| group | 1.12131663 | 3 | 44 | 0.35074134 |
Table 4.5.42: Homoscedasticity Test (Brown-Forsythe)
| Statistics | GL | P-value |
|---|---|---|
| 0.57191868 | 1 | 0.44949749 |
Table 4.5.43: Homoscedasticity Test - Breusch Pagan
| Variable | Statistics | GL1 | GL2 | P-value |
|---|---|---|---|---|
| Pos.Dose | 1.38532765330621 | 18 | 17 | 0.506222830943138 |
Table 4.5.44: Homoscedasticity Test - Goldfeld Quandt
| Statistics | P-value |
|---|---|
| 2.18707221 | 0.61413684 |
Table 4.5.45: Independence Test - Durbin-Watson
All tests obtained by the Action software, p-values above the significance level $\alpha=0,05.$ Therefore, we do not reject the null hypothesis of homoscedasticity, that is, the variances are homogeneous.
Step 5: Lack of Fit Test.
Now, let’s test the lack of adjustment of the linear model, to do this, consider the following hypotheses:
$$\begin{cases} H_0:E(Y_i)=\beta_0+\beta_1~x_i \hbox{ modelo linear adequado} \cr H_1: E(Y_i) \neq\beta_0+\beta_1~x_i \hbox{ modelo linear inadequado} \cr \end{cases} $$
| GL | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Pos.Dose | 1 | 77.01448437 | 77.01448437 | 76.37963345 | 0 |
| Waste | 46 | 45.17272059 | 0.98201567 | ||
| Lack of Adjustment | 2 | 0.80700215 | 0.40350108 | 0.40017491 | 0.6726172 |
| Pure Error | 44 | 44.36571844 | 1.00831178 |
Table 4.5.46: ANOVA for the regression linearity test.
According to the results obtained, we have not rejected the null hypothesis that the linear model is adequate. In the next step, we will evaluate the model residuals.
Step 6: Calculation of residuals and graphs of diagnostic analysis according to FDA 1983 recommendation.
First, let’s analyze the normality of the residues, but observe the main criteria for residue analysis.
| Diagnosis | Formula | Value |
|---|---|---|
| hii (Leverage) | (2*(p+1))/n | 0.083 |
| DFFITS | 2* root ((p+1)/n) | 0.41 |
| DCOOK | 4/n | 0.08333333 |
| DFBETA | 2/root(n) | 0.29 |
| Standardized Waste | (-3,3) | 3 |
| Studentized Waste | (-3,3) | 3 |
Table 4.5.47: Criteria for waste analysis
To do this, consider the following hypotheses:
$$\begin{cases} H_0: \hbox{Os dados seguem uma distribuição normal} \cr H_1: \hbox{Os dados não seguem uma distribuição normal.} \end{cases}$$
Figure 4.5.6: Waste Analysis
| Statistics | P-value | |
|---|---|---|
| Anderson-Darling | 0.66579179 | 0.07715901 |
| Shapiro-Wilk | 0.95184523 | 0.04737652 |
| Kolmogorov-Smirnov | 0.13995855 | 0.01956653 |
| Ryan-Joiner | 0.96951842 | 0.0207 |
Table 4.5.48: Residual normality test
From the results obtained, using the Ryan-Joiner and Shapiro-Wilk test, we reject the hypothesis of normality of the residuals. Now, let’s analyze the influential points.
Figure 4.5.7: DFFITS graph
From the results obtained, point 13 is an influential point.
With this, we removed observation 13 from the data. Thus, adjusting the model again, we noticed an improvement in the model, as we see below.
| Statistics | P-value | |
|---|---|---|
| Anderson-Darling | 0.511840634 | 0.185711873 |
| Shapiro-Wilk | 0.965715914 | 0.180932444 |
| Kolmogorov-Smirnov | 0.101217382 | 0.265421986 |
| Ryan-Joiner | 0.983316278 | 0.1738 |
Table 4.5.49: Residual normality test (model without point 13)
| GL | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Pos.Dose | 1 | 80.64448349 | 80.64448349 | 103.619671797 | 0 |
| Waste | 45 | 33.472829826 | 0.743840663 | ||
| Lack of Adjustment | 2 | 0.007053204 | 0.003526602 | 0.004531312 | 0.995479414 |
| Pure Error | 43 | 33.465776623 | 0.778273875 |
Table 4.5.50: ANOVA for the regression linearity test (model without point 13).
Finally, we will evaluate another assumption of the model, which is the independence of the residuals, for this we will consider the hypotheses.
$$\begin{cases} H_0: \hbox{Os resíduos são independentes} \cr H_1: \hbox{Os resíduos não são independentes.} \end{cases} $$
| Statistics | P-value |
|---|---|
| 2.233332264 | 0.511375728 |
Table 4.5.51: Independence Test - Durbin-Watson
From the results obtained, we have that the residues are independent (p-value=0.51) at the 5% significance level.
Step 7: The calculation of the 95% one-sided upper tolerance limits (with a 95% confidence level).
In this step, we will first define tolerance limits, which are limits for a percentage of a population. We then define a grace period (Withdrawal time - WT) which is the time in which the upper unilateral tolerance limit of 95% for residue is below the MRL (Maximum Residual Limit), with 95% confidence.
The tolerance interval is a statistical interval in which a given proportion of a population falls below 100p% (EMEA defines it as 95%) with a confidence of 100(1-$\alpha$)% (EMEA defines it as 95%).
In order to calculate a grace period, you have to specify two different percentages. The first expresses the fraction (percentage) of the values (animals) that the interval will contain. The second expresses how confident we want to be. If you set the second value to 50%, then a tolerance interval is the same as a prediction interval.
Now, to define the limit tolerance, we must keep two concepts in mind:
-
No confidence level: When many samples of the same size are taken from the same stable population and tolerance limits calculated each time, consequently, these limits will contain on average 95% of the population;
-
With confidence level: When many samples of the same size are taken from the same stable population and the tolerance limits calculated each time, consequently, these limits will contain at least 95% of the population from an average of 95% of the cases.
To better understand what a tolerance interval is, we must understand what a confidence interval is. A confidence interval is a range of values ranging from the lower confidence limit to the upper confidence limit. Therefore, we expect that this range should include the population parameter of interest, such as the population mean with a specified confidence level.
The tolerance interval estimates the interval that must contain a certain percentage of each individual measurement of the population. This is because tolerance intervals are based on only a sample of the entire population, that is, we cannot have 100% confidence that this interval will contain the specified proportion. Thus, there are two different proportions associated with the tolerance interval, which is the degree of confidence and a percentage of coverage. For example, we can be 95% confident that 95% of the population falls within the range specified by the tolerance interval.
In short, bioequivalence is related to a confidence interval for a parameter (e.g., the mean for 2 formulations). The grace period is related to a tolerance limit (quantile 95% for the European Union or 99% for the USA) and is defined as the time in which the unilateral upper tolerance limit of 95% for residue is below the MRL, with 95% confidence.
After defining the terms, we will calculate the threshold tolerance for this specific application, which is for log-transformed regression model. In calculating the limit tolerance, we use the fitted values from the linear regression model $\widehat{Y}_{ij}.$ Thus, we have the unilateral limit tolerance according to Wallis for linear regression with [100x(1-$\alpha$)%]/[100xP%] for each observation i (P is the coverage level) is obtained by
$$TL_{\text{sup}}=\exp(\widehat{Y}_{i}+\widehat{\sigma}k_{1,i}), \quad i=p_0,\dots,p_f$$
in which $\widehat{\sigma}=\sqrt{QME}$ is estimated by the mean square of the error, which is the standard deviation of the residuals, $[p_0,p_f]$ is the depletion time interval chosen for prediction.
Already $k_{1,i}$ is given by:
$$k_{1,i}=\dfrac{t^\star_{\left(n-p;1-\alpha\right)}(\sqrt{n^\star_i}Z^\star_P)}{\sqrt{n^\star_i}}$$
in which $t^\star_{\left(n-p;1-\alpha\right)}(\gamma)$ is the quantile of the non-central Student t-distribution with d degrees of freedom and $\gamma$ is the non-centrality parameter, with a confidence level of (1-$\alpha$). Already $Z^\star_P$ is the quantile of the standard normal distribution with coverage level P. The parameter $n^\star_i$ is given by:
$$n^\star_i=\dfrac{\widehat{\sigma}^2}{se(\widehat{y}_i)^2}$$
Let’s take Pos Dose equal to 26 as an example. With this we have:
$$se(\widehat{y_i})=\dfrac{1}{n}+\dfrac{(x_0-\overline{x})}{\displaystyle\sum^n_{i=1}(x_i-\overline{x})^2}=\dfrac{1}{48}+\dfrac{72,25}{2940}=0,213092$$
$$n^\star_i=\dfrac{QME}{se(\widehat{y_i})^2}=\dfrac{1,052279924}{0,21309^2}=23,17381$$
$$Z_P=Z_{0,95}=1,64485$$
Thus, we have that the non-centrality parameter is $\delta=\sqrt{n^\star_i}Z_{0,95}=\sqrt{23,17381}1,6485=7,91819,$ consequently
$$k_{1,i}=\dfrac{t^\star_{\left(n-p;1-\alpha\right)}(\sqrt{n^\star_i}Z^\star_P)}{\sqrt{n^\star_i}}=\dfrac{t^\star_{\left(46;0,95\right)}(7,91819)}{\sqrt{23,17381}}=\dfrac{10,37652}{4,813918}=2,155526$$
Therefore, the limit tolerance for time 26 (in days) is given by:
$$\log(TL_{\text{sup}})=\widehat{Y}_{i}+\widehat{\sigma}k_{1,i}=1,435+0,991\times 2,155526=3,575$$
The concentration in μg/kg is
$$TL_{\text{sup}}=\exp(\log(TL_{\text{sup}}))=e^{3,575}=35,7$$
The other points are calculated in table 4.5.52.
| Pos_Dose | $\widehat{y}$ | $\sqrt{QME}$ | $a=(x_0-\overline{x})^2$ | $b=\displaystyle\sum^{48}_{i=1}(x_i-\overline{x})^2$ | $\frac{a}{b}$ | $\frac{1}{n}+\frac{a}{b}$ | if | n$^\star_i$ | $\delta$ | $t^\star(\delta)$ | K | log(LS) | LS |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 26 | 1,435 | 0,991 | 72,25 | 2940 | 0,0246 | 0,0454 | 0,2131 | 21,626 | 7,649 | 10,069 | 2,165 | 3,581 | 35,903 |
| 27 | 1,273 | 0,991 | 90,25 | 2940 | 0,0307 | 0,0515 | 0,2270 | 19,057 | 7,180 | 9,533 | 2,184 | 3,438 | 31,110 |
| 28 | 1,112 | 0,991 | 110,25 | 2940 | 0,0375 | 0,0583 | 0,2415 | 16,835 | 6,749 | 9,042 | 2,204 | 3,295 | 26,990 * |
| 29 | 0,950 | 0,991 | 132,25 | 2940 | 0,0450 | 0,0658 | 0,2565 | 14,921 | 6,354 | 8,594 | 2,225 | 3,155 | 23,441 |
| 30 | 0,788 | 0,991 | 156,25 | 2940 | 0,0531 | 0,0740 | 0,2720 | 13,274 | 5,993 | 8,186 | 2,247 | 3,015 | 20,379 |
| 31 | 0,626 | 0,991 | 182,25 | 2940 | 0,0620 | 0,0828 | 0,2878 | 11,857 | 5,664 | 7,816 | 2,270 | 2,875 | 17,732 |
| 32 | 0,464 | 0,991 | 210,25 | 2940 | 0,0715 | 0,0923 | 0,3039 | 10,634 | 5,364 | 7,479 | 2,294 | 2,737 | 15,441 |
| 33 | 0,302 | 0,991 | 240,25 | 2940 | 0,0817 | 0,1026 | 0,3202 | 9,576 | 5,090 | 7,173 | 2,318 | 2,599 | 13,454 |
Table 4.5.52: Results of the calculation of the Limit tolerance for depletion in liver tissues (MRL below 30μg/kg).
Step 8: Determination of the safety period (grace period for waste depletion)
Figure 4.5.8: Chart with tolerance limits
From the graph, we note that the day that intersects the tolerance limit for the MRL = log(30)μg/kg is 28. Therefore, the grace period or safety interval for residue depletion is 28 days.
4.5.2.2 Analysis for fat data
In this section we consider two variables Pos_Dose (days after applying the dose) and log_fig (logarithm of fat residue concentration), in this case, we can establish a simple linear regression whose statistical model is
$$Y_{ij}=\beta_0+\beta_1~x_{i}+\varepsilon_{ij}\quad i=1,\cdots, n;$$
in which,
-
$Y_{ij}$: represents the jth measurement of the logarithm of the concentration of fat residues referring to the ith day after applying the dose;
-
$X_{i}$: represents the i-th day after applying the dose;
-
$\beta_0$: represents the linear coefficient or intercept (fictitious concentration at time t=0);
-
$\beta_1$: represents the angular coefficient;
-
$\varepsilon_{ij}$: represents the jth error made in measuring the ith logarithm of fat residue concentration. We consider that the $\varepsilon_{ij}$ are independent and identically distributed with distribution $N(0,\sigma^2)$.
For the data in table 4.5.35, let’s follow step 1 and inspect the data.
Step 1: Data inspection.
In this step it is essential to check the data below the detection limit and according to EMEA, for this data we define these values as half the detection limit.
Specifically for this data set, for the fat variable, day 35 was excluded from the calculation because of many values below the detection limit (10 out of 12 observations) as seen in the application to liver tissue data.
With this, we have the following set of data:
| N | Pos_Dose | log_fat |
|---|---|---|
| 1 | 7 | 4,572647 |
| 2 | 7 | 5,4161 |
| 3 | 7 | 5,365041 |
| 4 | 7 | 3,877432 |
| 5 | 7 | 4,781641 |
| 6 | 7 | 5,322034 |
| 7 | 7 | 5,059425 |
| 8 | 7 | 6,109248 |
| 9 | 7 | 4,178992 |
| 10 | 7 | 5,277094 |
| 11 | 7 | 5,000585 |
| 12 | 7 | 5,31074 |
| 13 | 14 | 0 |
| 14 | 14 | 2,424803 |
| 15 | 14 | 4,366913 |
| 16 | 14 | 3,94739 |
| 17 | 14 | 3,520461 |
| 18 | 14 | 3,210844 |
| 19 | 14 | 0,832909 |
| 20 | 14 | 2,76001 |
| 21 | 14 | 3,94739 |
| 22 | 14 | 2,60269 |
| 23 | 14 | 3,113515 |
| 24 | 14 | 3,756538 |
| 25 | 21 | 3,295837 |
| 26 | 21 | 2,197225 |
| 27 | 21 | 1,916923 |
| 28 | 21 | 1,916923 |
| 29 | 21 | 1,916923 |
| 30 | 21 | 2,424803 |
| 31 | 21 | 3,701302 |
| 32 | 21 | 2,197225 |
| 33 | 21 | 1,504077 |
| 34 | 21 | 2,197225 |
| 35 | 21 | 2,197225 |
| 36 | 21 | 0 |
| 37 | 28 | 1,504077 |
| 38 | 28 | 1,504077 |
| 39 | 28 | 2,197225 |
| 40 | 28 | 1,916923 |
| 41 | 28 | 0 |
| 42 | 28 | 1,504077 |
| 43 | 28 | 0 |
| 44 | 28 | 0 |
| 45 | 28 | 1,504077 |
| 46 | 28 | 2,197225 |
| 47 | 28 | 2,60269 |
| 48 | 28 | 0 |
Table 4.5.53: Fat marker residue.
Now, let’s go to step 2.
Step 2: Calculation of linear regression parameters from log transformed data.
Solution:
| N | Pos_Dose | log_fat | Pos_Dose2 | log_fat2 | Pos_Dose x log_fat |
|---|---|---|---|---|---|
| 1 | 7 | 4,573 | 49 | 20,909 | 32,009 |
| 2 | 7 | 5,416 | 49 | 29,334 | 37,913 |
| 3 | 7 | 5,365 | 49 | 28,784 | 37,555 |
| 4 | 7 | 3,877 | 49 | 15,034 | 27,142 |
| 5 | 7 | 4,782 | 49 | 22,864 | 33,471 |
| 6 | 7 | 5,322 | 49 | 28,324 | 37,254 |
| 7 | 7 | 5,059 | 49 | 25,598 | 35,416 |
| 8 | 7 | 6,109 | 49 | 37,323 | 42,765 |
| 9 | 7 | 4,179 | 49 | 17,464 | 29,253 |
| 10 | 7 | 5,277 | 49 | 27,848 | 36,940 |
| 11 | 7 | 5,001 | 49 | 25,006 | 35,004 |
| 12 | 7 | 5,311 | 49 | 28,204 | 37,175 |
| 13 | 14 | 0 | 196 | 0 | 0 |
| 14 | 14 | 2,425 | 196 | 5,880 | 33,947 |
| 15 | 14 | 4,367 | 196 | 19,070 | 61,137 |
| 16 | 14 | 3,947 | 196 | 15,582 | 55,263 |
| 17 | 14 | 3,520 | 196 | 12,394 | 49,286 |
| 18 | 14 | 3,211 | 196 | 10,310 | 44,952 |
| 19 | 14 | 0,833 | 196 | 0,694 | 11,661 |
| 20 | 14 | 2,760 | 196 | 7,618 | 38,640 |
| 21 | 14 | 3,947 | 196 | 15,582 | 55,263 |
| 22 | 14 | 2,603 | 196 | 6,774 | 36,438 |
| 23 | 14 | 3,114 | 196 | 9,694 | 43,589 |
| 24 | 14 | 3,757 | 196 | 14,112 | 52,592 |
| 25 | 21 | 3,296 | 441 | 10,863 | 69,213 |
| 26 | 21 | 2,197 | 441 | 4,828 | 46,142 |
| 27 | 21 | 1,917 | 441 | 3,675 | 40,255 |
| 28 | 21 | 1,917 | 441 | 3,675 | 40,255 |
| 29 | 21 | 1,917 | 441 | 3,675 | 40,255 |
| 30 | 21 | 2,425 | 441 | 5,880 | 50,921 |
| 31 | 21 | 3,701 | 441 | 13,700 | 77,727 |
| 32 | 21 | 2,197 | 441 | 4,828 | 46,142 |
| 33 | 21 | 1,504 | 441 | 2,262 | 31,586 |
| 34 | 21 | 2,197 | 441 | 4,828 | 46,142 |
| 35 | 21 | 2,197 | 441 | 4,828 | 46,142 |
| 36 | 21 | 0 | 441 | 0 | 0 |
| 37 | 28 | 1,504 | 784 | 2,262 | 42,114 |
| 38 | 28 | 1,504 | 784 | 2,262 | 42,114 |
| 39 | 28 | 2,197 | 784 | 4,828 | 61,522 |
| 40 | 28 | 1,917 | 784 | 3,675 | 53,674 |
| 41 | 28 | 0 | 784 | 0 | 0 |
| 42 | 28 | 1,504 | 784 | 2,262 | 42,114 |
| 43 | 28 | 0 | 784 | 0 | 0 |
| 44 | 28 | 0 | 784 | 0 | 0 |
| 45 | 28 | 1,504 | 784 | 2,262 | 42,114 |
| 46 | 28 | 2,197 | 784 | 4,828 | 61,522 |
| 47 | 28 | 2,603 | 784 | 6,774 | 72,875 |
| 48 | 28 | 0 | 784 | 0 | 0 |
| Sum | 840 | 135,150 | 17640 | 516,591 | 1857,495 |
| Average | 17,5 | 2,816 |
Table 4.5.54: Transformed data
The sample means of the variables Days after dose application (X) and Logarithm of residue concentration in liver tissue (Y) are, respectively,
$$\overline{x}=\dfrac{1}{48}\sum_{i=1}^{48}x_i=17,5\quad\text{e}\quad\overline{y}=\dfrac{1}{48}\sum_{i=1}^{48} y_i=2,811008.$$
Furthermore, in Table 4.5.54, we present the values of $x^2$, $y^2$ and $xy$ for each observation $i=1,…,48$.
From the table we calculate the sums of squares as follows:
$$S_{xx}=\sum^n_{i=1}x_i^2-n\overline{x}^2=17640-48\times 17,5^2=2940$$
$$S_{yy}=\sum^n_{i=1}y_i^2-n\overline{y}^2= 516,591 - 48 \times 2,816^2=136,057$$
$$S_{xy}=\sum^n_{i=1}x_i y_i-n\overline{x}\overline{y}=1857,495 - 48 \times 17,5 \times 2,816=-507,6386.$$
Therefore, the parameter estimates $\beta_{1}$ and $\beta_{0}$ are, respectively
$$\widehat\beta_1=\dfrac{S_{xy}}{S_{xx}}=\dfrac{-507,6386}{2940}=-0,17267\quad\text{e }\quad\widehat\beta_0=\overline{y}-\widehat{\beta_1}\overline{x}=2,816-(-0,17267)\times 17,5=5,8372.$$
Therefore, the adjusted model is given by
$$\log(\text{fat})~=~5,84~-0,17~\times \hbox{Pos}_{\hbox{dose}}.$$
With this, we have the following results obtained by the Action software.
| Estimate | Standard Deviation | Stat.t | P-value | |
|---|---|---|---|---|
| Intercept | 5.83729375 | 0.3626775364 | 16.0949966945 | 0 |
| Pos.Dose | -0.1726661893 | 0.0189187303 | -9.1267324418 | 0 |
Table 4.5.55: Coefficients obtained by Action Stat.
Step 3: Visual inspection of the regression line.
Both the regression line for liver and the regression line for fat passed through all slaughter groups. No time points should be deleted at the end or beginning of the line.
Step 4: Homogeneity of variances.
Next, we present some tests obtained by the Action software. EMEA cites some statistics, such as the Cochran test, while MAPA cites the Brown-Forsythe test.
With this, we tested the following hypothesis:
$$\begin{cases} H_0:\sigma^2_1=\sigma^2_2 = … =\sigma^2_k \cr H_1: \hbox{pelo menos um dos}~\sigma_i^2\hbox{’s diferente,} \quad i=1,\ldots,k. \cr \end{cases} $$
| Variable | Statistics | G.L.Num. | G.L. Den. | P-value |
|---|---|---|---|---|
| group | 1.0815782751 | 3 | 44 | 0.3667760816 |
Table 4.5.56: Homoscedasticity Test (Brown-Forsythe)
All tests obtained by the Action software, p-values above the significance level $\alpha=0,05.$ Therefore, we do not reject the null hypothesis of homoscedasticity, that is, the variances are homogeneous.
Step 5: Lack of Fit Test.
Now, let’s test the lack of adjustment of the linear model, to do this, consider the following hypotheses:
$$\begin{cases} H_0:E(Y_i)=\beta_0+\beta_1~x_i \hbox{ modelo linear adequado} \cr H_1: E(Y_i) \neq\beta_0+\beta_1~x_i \hbox{ modelo linear inadequado} \cr \end{cases} $$
| GL | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Pos.Dose | 1 | 87.652021992 | 87.652021992 | 91.466610972 | 0 |
| Waste | 46 | 48.4048783187 | 1.0522799635 | ||
| Lack of Adjustment | 2 | 6.2398857967 | 3.1199428983 | 3.2557218516 | 0.0480157468 |
| Pure Error | 44 | 42.164992522 | 0.9582952846 |
Table 4.5.57: ANOVA for the regression linearity test.
According to the results obtained, we have to reject the null hypothesis that the linear model is adequate. In the next step, we will evaluate the residuals to obtain the value that causes this lack of adjustment in the model.
Step 6: Calculation of residuals and graphs of diagnostic analysis according to FDA 1983 recommendation.
First, let’s analyze the normality of the residues, but observe the main criteria for residue analysis.
| Diagnosis | Formula | Value |
|---|---|---|
| hii (Leverage) | (2*(p+1))/n | 0.083 |
| DFFITS | 2* root ((p+1)/n) | 0.41 |
| DCOOK | 4/n | 0.08333333 |
| DFBETA | 2/root(n) | 0.29 |
| Standardized Waste | (-3,3) | 3 |
| Studentized Waste | (-3,3) | 3 |
Table 4.5.58: Criteria for waste analysis
To do this, consider the following hypotheses:
$$\begin{cases} H_0: \hbox{Os dados seguem uma distribuição normal} \cr H_1: \hbox{Os dados não seguem uma distribuição normal.} \end{cases} $$
| Statistics | P-value | |
|---|---|---|
| Anderson-Darling | 0.8881200212 | 0.0213737942 |
| Shapiro-Wilk | 0.9218023098 | 0.0034431618 |
| Kolmogorov-Smirnov | 0.110503294 | 0.1506427777 |
| Ryan-Joiner | 0.957805771 | 0.0036 |
Table 4.5.59: Normality Tests
From the results obtained, using the Ryan-Joiner and Shapiro-Wilk test, we reject the hypothesis of normality of the residuals. Now, let’s analyze the influential points.
Figure 4.5.9: DFFITS and D-COOK graphs
From the results obtained, point 13 is an influential point. With this, we removed observation 13 from the data. Thus, adjusting the model again, we noticed an improvement in the model, as we see below.
| Statistics | P-value | |
|---|---|---|
| Anderson-Darling | 0.4878319949 | 0.2133488263 |
| Shapiro-Wilk | 0.9569515769 | 0.0814287951 |
| Kolmogorov-Smirnov | 0.0936971576 | 0.3798474306 |
| Ryan-Joiner | 0.9770474947 | 0.0645 |
Table 4.5.60: Residual normality test (model without point 13)
Figure 4.5.10: Probability role of model residuals without point 13
With the p-value greater than the significance level $\alpha = 5\char37$, using the Ryan-Joiner and Shapiro-Wilk test, we did not reject the hypothesis of normality of the residuals.
| GL | Sum of Squares | Medium Square | Stat. F | P-value | |
|---|---|---|---|---|---|
| Pos.Dose | 1 | 91.5516193046 | 91.5516193046 | 118.7311393861 | 0 |
| Waste | 45 | 36.4088014314 | 0.8090844763 | ||
| Lack of Adjustment | 2 | 3.2522120948 | 1.6261060474 | 2.1088586443 | 0.1337563973 |
| Pure Error | 43 | 33.1565893366 | 0.7710834729 |
Table 4.5.61: ANOVA for the regression linearity test (model without point 13).
Here, we do not reject the null hypothesis that the model is adequate.
Finally, we will evaluate another assumption of the model, which is the independence of the residuals, for this we will consider the hypotheses.
$$\begin{cases} H_0: \hbox{Os resíduos são independentes} \cr H_1: \hbox{Os resíduos não são independentes.} \end{cases} $$
| Statistics | P-value |
|---|---|
| 1.8759298855 | 0.5615197799 |
Table 4.5.63: Independence Test - Durbin-Watson
From the results obtained, we have that the residues are independent (p-value=0.56) at the 5% significance level.
Step 7: The calculation of the 95% one-sided upper tolerance limits (both with a 95% confidence level).
$$TL_{\text{sup}}=\exp(\widehat{Y}_{i}+\widehat{\sigma}k_{1,i}), \quad i=p_0,\dots,p_f$$
in which $\widehat{\sigma}=\sqrt{QME}$ is estimated by the mean square of the error, which is the standard deviation of the residuals, $[p_0,p_f]$ is the depletion time interval chosen for prediction.
Already $k_{1,i}$ is given by:
$$k_{1,i}=\dfrac{t^\star_{\left(n-p;1-\alpha\right)}(\sqrt{n^\star_i}Z^\star_P)}{\sqrt{n^\star_i}}$$
in which $t^\star_{\left(n-p;1-\alpha\right)}(\gamma)$ is the quantile of the non-central Student t-distribution with d degrees of freedom and $\gamma$ is the non-centrality parameter, with a confidence level of (1-$\alpha$). Already $Z^\star_P$ is the quantile of the standard normal distribution with coverage level P. The parameter $n^\star_i$ is given by:
$$n^\star_i=\dfrac{\widehat{\sigma}^2}{se(\widehat{y}_i)^2}$$
Let’s take Pos Dose equal to 26 as an example. With this we have:
$$se(\widehat{y_i})=\dfrac{1}{n}+\dfrac{(x_0-\overline{x})}{\displaystyle\sum^n_{i=1}(x_i-\overline{x})^2}=\dfrac{1}{48}+\dfrac{72,25}{2940}=0,213092$$
$$n^\star_i=\dfrac{QME}{se(\widehat{y}_i)^2}=\dfrac{1,05228}{0,21309^2}=23,17381$$
$$Z_P=Z_{0,95}=1,64485$$
Thus, we have that the non-centrality parameter is $\delta=\sqrt{n^\star_i}Z_{0,95}=\sqrt{23,17381}1,6485=7,91819,$ consequently
$$k_{1,i}=\dfrac{t^\star_{\left(n-p;1-\alpha\right)}(\sqrt{n^\star_i}Z^\star_P)}{\sqrt{n^\star_i}}=\dfrac{t^\star_{\left(46;0,95\right)}(7,91819)}{\sqrt{23,17381}}=\dfrac{10,37652}{4,813918}=2,155526$$
Therefore, the limit tolerance for time 26 (in days) is given by:
$$\log(TL_{\text{sup}})=\widehat{Y}_{i}+\widehat{\sigma}k_{1,i}=1,435+1,0258\times 2,155526=3,559$$
The concentration in μg/kg is
$$TL_{\text{sup}}=\exp(\log(TL_{\text{sup}}))=e^{3,559}=35,1$$
The remaining points are calculated in table 4.5.64.
| Pos_Dose | $\widehat{y}$ | $\sqrt{QME}$ | $a=(x_0-\overline{x})^2$ | $b=\displaystyle\sum^{48}_{i=1}(x_i-\overline{x})^2$ | $\frac{a}{b}$ | $\frac{1}{n}+\frac{a}{b}$ | if | n$^\star_i$ | $\delta$ | $t^\star(\delta)$ | K | log(LS) | LS |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 26 | 1,348 | 1,0258 | 72,25 | 2940 | 0,0246 | 0,045 | 0,213 | 23,174 | 7,918 | 10,377 | 2,156 | 3,559 | 35,132 |
| 27 | 1,175 | 1,0258 | 90,25 | 2940 | 0,0307 | 0,052 | 0,227 | 20,420 | 7,433 | 9,818 | 2,173 | 3,404 | 30,085 |
| 28 | 1,003 | 1,0258 | 110,25 | 2940 | 0,0375 | 0,058 | 0,242 | 18,039 | 6,986 | 9,328 | 2,196 | 3,255 | 25,932 |
| 29 | 0,830 | 1,0258 | 132,25 | 2940 | 0,0450 | 0,066 | 0,257 | 15,988 | 6,577 | 8,873 | 2,219 | 3,106 | 22,340 |
| 30 | 0,657 | 1,0258 | 156,25 | 2940 | 0,0531 | 0,074 | 0,272 | 14,224 | 6,204 | 8,420 | 2,233 | 2,948 | 19,059 * |
| 31 | 0,485 | 1,0258 | 182,25 | 2940 | 0,0620 | 0,083 | 0,288 | 12,705 | 5,863 | 8,037 | 2,255 | 2,798 | 16,404 |
| 32 | 0,312 | 1,0258 | 210,25 | 2940 | 0,0715 | 0,092 | 0,304 | 11,395 | 5,552 | 7,688 | 2,278 | 2,648 | 14,129 |
| 33 | 0,139 | 1,0258 | 240,25 | 2940 | 0,0817 | 0,103 | 0,320 | 10,261 | 5,269 | 7,374 | 2,302 | 2,501 | 12,192 |
| 34 | -0,033 | 1,0258 | 272,25 | 2940 | 0,0926 | 0,113 | 0,337 | 9,276 | 5,010 | 7,072 | 2,322 | 2,349 | 10,471 |
| 35 | -0,206 | 1,0258 | 306,25 | 2940 | 0,1042 | 0,125 | 0,354 | 8,418 | 4,772 | 6,816 | 2,349 | 2,204 | 9,059 |
| 36 | -0,379 | 1,0258 | 342,25 | 2940 | 0,1164 | 0,137 | 0,370 | 7,667 | 4,555 | 6,571 | 2,373 | 2,056 | 7,812 |
Table 4.5.65: Results of the calculation of the Limit tolerance for depletion in fat tissues (MRL below 20μg/kg).
Step 8: Determination of the safety period (grace period for waste depletion)
Figure 4.5.11: Chart with tolerance limits
From the graph, we note that the day that intersects the tolerance limit for the MRL = log(20)μg/kg is 30. Therefore, the grace period or safety interval for residue depletion is 30 days.