cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. ET on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

How to use JSL for Fit Group with by column?

Not sure what is erroring out in this script using Fit Group in JSL. It still plots the graph as I wanted, however it terminated the script at that point.

In the following script, error marked by /*###*/
Fit Group(
	Bivariate(Y(:A), X(:AAA),
	Bivariate(Y(:A), X(:BBB)),
	Bivariate(Y(:A), X(:CCC)),
	Bivariate(Y(:B), X(:AAA)),
	Bivariate(Y(:B), X(:BBB)),
	Bivariate(Y(:B), X(:CCC)),
	<<{Arrange in Rows(3)},
	By(:Group123) /*###*/
);

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to use JSL for Fit Group with by column?

I assume the issue is that the By needs to be associated with each of the separate Bivariate instances

Fit Group(
	Bivariate(Y(:A), X(:AAA),By(:Group123)),
	Bivariate(Y(:A), X(:BBB),By(:Group123)),
	Bivariate(Y(:A), X(:CCC),By(:Group123)),
	Bivariate(Y(:B), X(:AAA),By(:Group123)),
	Bivariate(Y(:B), X(:BBB),By(:Group123)),
	Bivariate(Y(:B), X(:CCC),By(:Group123)),
	<<{Arrange in Rows(3)}
);
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to use JSL for Fit Group with by column?

I assume the issue is that the By needs to be associated with each of the separate Bivariate instances

Fit Group(
	Bivariate(Y(:A), X(:AAA),By(:Group123)),
	Bivariate(Y(:A), X(:BBB),By(:Group123)),
	Bivariate(Y(:A), X(:CCC),By(:Group123)),
	Bivariate(Y(:B), X(:AAA),By(:Group123)),
	Bivariate(Y(:B), X(:BBB),By(:Group123)),
	Bivariate(Y(:B), X(:CCC),By(:Group123)),
	<<{Arrange in Rows(3)}
);
Jim
cyrus_cheung
Level I

Re: How to use JSL for Fit Group with by column?

Thanks!

Recommended Articles