WSUBn returns the difference between weekly values of a specified variable, Vx, and locates the difference on the last day of the specified week, defined by n.
SYNTAX:
WSUBn(Cx)
where :
n specifies the Week Definition, which determines the begining and end of the week.
Cx is a conditional variable x
NOTES:
This function has lookback features.
EXAMPLES:
V142 = WSUB1(V70)
Variable 142 will contain the weekly difference of variable 70, recorded on the last day of each week. In this case, the week is defined as Monday through Sunday (n=1); therefore the results will be stored each Sunday: