Hi all - I am still learning the basics of JSL and am trying to write a script that will compare how well the "point in time" predicted value compares to subsequent predicted values over the following 7 days.  I am trying to get the script to do the following:
 
1 - perform regression on all rows in data table (each row corresponds to a 15 minute increment, so my predicted value is computed every 15 minutes).
 
Ex:  
obj = Fit Model(
    Y( :LOG_ECOLI_Pear ),
    Effects( :LOG_TURB_Pear, :millsR_Q_lag6hr ),
    Personality( "Standard Least Squares" ),
    Emphasis( "Effect Leverage" ),
    Run( :LOG_ECOLI_Pear )
);
obj << Prediction Formula;
 
2 - select the predicted value that occurs each Monday morning at 8 am throughout the dataset spanning 3 years.
 
3 - compare that value to all the other predicted values that occur during the week following that 8 am value (i.e. Mon 8:15 am to the following Mon at 7:45 am).  (That is, all the values computed during the week will be compared to the Monday at 8 am value.)  Then, count the number of rows in which all those predicted values are more than + or - 25% of the 8 am value for that week.  Continue (repeat this process) until all the weeks are accounted for. 
 
ex:   
New Column( "count num above or below 25pct of mon 8am",
    numeric,
    continuous,
    formula(
        If( Row() == 1, x = 0 );
        ((If( :above or below 25pct of mon 8am == 1,
            x = x + :above or below 25pct of mon 8am,
            X = X + :above or below 25pct of mon 8am
        )));
        x;
    )
);
 
I'm not sure how to select the week's worth of values to compare to the Mon 8 am value.  And I'm not sure I'm even on the right track with this.  I would greatly appreciate any help!