cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
markschwab
Level IV

How to use Partition platform in JSL?

Is there any way to automate the Partition platform using JSL?

E.g., say I want to model the "Consumer Prices.jmp" dataset as step-function changes in each commodity price. I can do this in the Partition Platform:

1) Open "Consumer Prices.jmp"
2) Analyze -> Predictive Modeling -> Partition
3) Cast Price as Y, Date as X, and Series Full as By, with a 0.25 validation portion
4) Click "Go" for each commodity to do the automated partition
5) Save Columns -> Save Prediction Formula

Now, is there any way to replicate that in JSL? When I try to Save Script it saves a partition with an Initial Splits argument with the split dates pre-filled, but I don't know how to script the analysis that selects the splits (i.e. the analysis done when you click the "Go" button.)

Using JMP Pro 14.3.0 on Windows 10
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to use Partition platform in JSL?

Names Default to Here( 1 );

// example
dt = Open( "$SAMPLE_DATA/Consumer Prices.jmp" );

tree = dt << Partition(
	Y( :Price ),
	X( :Date ),
	Validation Portion( 0.25 ),
	Show Tree( 0 ),
	Split History( 1 ),
	Informative Missing( 1 ),
	By( :Series Full )
);

tree << Go;
Wait( 0 );
tree << Save Prediction Formula;

View solution in original post

2 REPLIES 2

Re: How to use Partition platform in JSL?

Names Default to Here( 1 );

// example
dt = Open( "$SAMPLE_DATA/Consumer Prices.jmp" );

tree = dt << Partition(
	Y( :Price ),
	X( :Date ),
	Validation Portion( 0.25 ),
	Show Tree( 0 ),
	Split History( 1 ),
	Informative Missing( 1 ),
	By( :Series Full )
);

tree << Go;
Wait( 0 );
tree << Save Prediction Formula;
markschwab
Level IV

Re: How to use Partition platform in JSL?

Thanks!

Recommended Articles