Example of Stability Study with a random batch factor

Select the model

A quality engineer for a drug manufacturer wants to determine the shelf life for a medication. The concentration of the active ingredient in the medication decreases over time. The engineer wants to determine when the concentration reaches 90% of the intended concentration. The engineer randomly selects 8 batches of medication from a larger population of possible batches and tests one sample from each batch at nine different times.

To estimate the shelf life, the engineer does a stability study. Because the batches are a random sample from a larger population of possible batches, batch is a random factor instead of a fixed factor.

  1. Open the sample data ShelfLifeRandomBatches.MTW.
  2. Choose Stat > Regression > Stability Study > Stability Study.
  3. In Response, enter Drug%.
  4. In Time, enter Month.
  5. In Batch, enter Batch.
  6. In Lower spec, enter 90.
  7. Click Options.
  8. In the drop-down list, select Batch is a random factor.
  9. Click OK and then click Graphs.
  10. Under Residuals Plots, choose Four in one.
  11. Click OK in each dialog box.

Interpret the results

The p-value that compares the models with and without the Month by Batch interaction is 0.059. Because the p-value is less than the significance level of 0.25, the analysis uses the model with the Month by Batch interaction. The shelf life, which is approximately 53 months, is an estimate of the how long the engineer can be 95% confident that 95% of the drug is above the lower specification limit. The estimate applies to any batch that the engineer randomly selects from the process.

The marginal residuals may not follow a normal distribution with constant variance. The points on the normal probability plot do not follow the line well. One reason for the nonnormal behavior of the marginal residuals is that, when the final model includes the batch by time interaction, the variance of the marginal residuals depends on the time variable and may not be constant. You can use the conditional residuals to check the normality of the error term in the model.

Factor Information

FactorTypeNumber of LevelsLevels
BatchRandom81, 2, 3, 4, 5, 6, 7, 8

Model Selection with α = 0.25

Model-2 LogLikelihoodDifferenceP-Value
Month Batch Month*Batch128.599   
Month Batch133.4244.824760.059
Terms in selected model: Month, Batch, Month*Batch

Variance Components

SourceVar% of TotalSE VarZ-ValueP-Value
Batch0.52740972.91%0.3038531.7357390.041
Month*Batch0.0001740.02%0.0001421.2241020.110
Error0.19573927.06%0.0367525.3259320.000
Total0.723322       

Model Summary

SR-sqR-sq(adj)
0.44242496.91%96.87%

Coefficients

TermCoefSE CoefDFT-ValueP-Value
Constant100.0602470.2687067.22372.3783470.000
Month-0.1387660.0057947.22-23.9501960.000

Random Effect Predictions

TermBLUPStDevDFT-ValueP-Value
Batch         
  11.3594330.31398812.454.3295670.001
  20.3953750.31398812.451.2592030.231
  30.1091510.31398812.450.3476290.734
  4-0.4093220.31398812.45-1.3036230.216
  5-0.1356430.31398812.45-0.4320010.673
  6-1.0647360.31398812.45-3.3910060.005
  70.0494200.31398812.450.1573940.877
  8-0.3036780.31398812.45-0.9671640.352
Month*Batch         
  10.0062810.00858110.490.7319250.480
  20.0199050.00858110.492.3195370.042
  3-0.0138310.00858110.49-1.6117420.137
  40.0034680.00858110.490.4041730.694
  50.0012400.00858110.490.1444550.888
  60.0002760.00858110.490.0321440.975
  7-0.0109610.00858110.49-1.2772720.229
  8-0.0063780.00858110.49-0.7432200.474

Marginal Fits and Diagnostics for Unusual Observations

ObsDrug%FitDFResidStd Resid
10101.56400099.6439507.043681.9200502.375254R
31100.61800098.8113547.052731.8066462.213787R
5598.48100096.7298668.873831.7511342.033482R
R  Large residual

Shelf Life Estimation

Lower spec limit = 90
Shelf life = time period in which you can be 95% confident that at least 95% of response is
     above lower spec limit
Shelf life for all batches = 53.1818

Check the conditional residuals

  1. Choose Stat > Regression > Stability Study > Stability Study.
  2. Click Graphs.
  3. In Residuals for plots, select Conditional regular.
  4. Click OK in each dialog box.

Interpret the results

In these results, the conditional residuals appear to follow a normal distribution. The full model appears to fit the data well.