SigmaPlot Product Uses - Shelf Life Simulation

Shelf Life Simulation

The following transform is used to generate time-activity data to evaluate the shelf life transform.

' SIMULATION FOR SHELF LIFE ANALYSIS  
' INPUT  
DT=3       ' TIME INCREMENT (MONTHS)  
N=25       ' NUMBER OF DATA POINTS  
B=-.1      ' SLOPE OF ACTIVITY LINE  
STD=2      ' STD DEVIATION OF GAUSSIAN NOISE  
RES=1      ' FIRST COLUMN OF OUTPUT  
' PROGRAM  
X=DATA(DT,N*DT,DT)  
A=100  
Y=A+B*X  
YF=Y+GAUSSIAN(SIZE(X),0/0,0,STD)  
' OUTPUT  
COL(RES)=X  
COL(RES+1)=ROUND(YF,2)