Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For more information, see the online learning platform

For each selected variable, Shifted variables creates new variables shifted up or down a certain number of records within a defined window. The window is specified with a Lower and Upper shift and, a step. 

...

In the example below, the variable chosen to be shifted is Meal_Feed_B. The lower shift chosen was - 10 which specifies the lower bound of the shift window. A lower shift of -10 would create an additional variable in the data set that has its rows shifted down ten lines compared to the original variable. The upper bond was specified as zero, therefore no upper bond additional variable will be created.  The step is defined as 10, which specifies the step size (number of rows of 10) between the upper and lower shifts (step window). As the  step is equivalent to the step window it will result in only one new variable being calculated (Meal_Feed_B -10). 



All rows of the new variable are shifted down 10 lines compared to the original variable. The previous records of the new variable Meal_Feed_B -10 , from 1 to 10, are empty (missing values). 

...