Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- How to use JSL for Fit Group with by column?

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Jan 13, 2019 4:12 PM
(1040 views)

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

Thanks!