Seems like JMP will incorrectly evaluate the "missing" argument to Empty()
// Transform column
Data Table("Big Class") << Apply Formula(
Columns(:weight),
Formula(Lag(:weight, Empty())),
Output(New Formula)
);
If you use Lag under Row this doesn't happen as it uses other method to create the column
// New formula column: Lag[weight]
Data Table("Big Class") << New Formula Column(
Operation(Category("Row"), "Lag"),
Columns(:weight)
);
Edit: And it does happen with other functions too (at least with Dif but there could be other)
// Transform column
Data Table("Big Class") << Apply Formula(
Columns(:weight),
Formula(Dif(:weight, Empty())),
Output(New Formula)
);
-Jarmo