- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Do you use lag(x)?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
The good thing:
It's not a general issue of "Lag"
... it seems to be caused by:
When I generate the Formula this way, the entries are empty.
When I create a new column and add the formula afterwards, the values are calculated.
added: video with different ways to generate the formula column
- new formula column: add lag via click -> fail
- new formula column: add lag manually -> fail
- new formula column: delete code and write again -> fail
- new column -> add formula manually -> works
- new column -> add formula column via click and write (like #2) -> works
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
This is a modal window. This modal can be closed by pressing the Escape key or activating the close button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
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)
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
Seems to work fine in all the versions I tried, including 18.1.1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
Ok, good.
And kind of strange ...
So, it's neither 100% gone - nor 100% working.
what makes the difference ?
PC vs. Mac?
... I will check my preferences - and compare with more colleagues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
The good thing:
It's not a general issue of "Lag"
... it seems to be caused by:
When I generate the Formula this way, the entries are empty.
When I create a new column and add the formula afterwards, the values are calculated.
added: video with different ways to generate the formula column
- new formula column: add lag via click -> fail
- new formula column: add lag manually -> fail
- new formula column: delete code and write again -> fail
- new column -> add formula manually -> works
- new column -> add formula column via click and write (like #2) -> works
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
This is a modal window. This modal can be closed by pressing the Escape key or activating the close button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
I submitted a ticket to JMP support: TS-00182750
let's see ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
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)
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Do you use lag(x)?
Good point, thanks @jthi for digging deeper.
I never paid attention and noticed the 2 ways formula editor displays optional arguments:
- explicit:
- not [just in the description]: