cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

How to use correctly "Group Y by..." option in "Fit Y by X" platform?

How to use correctly "Group Y by..." option in "Fit Y by X" platform?

 

DATA_for_Y_by_X_platform.jpg

Doctor
1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: How do I get "Group Y by..." option in "Fit Y by X" platform (why it doesn't work)

Can you explain how it's not working for you? The Group By option will cause the Fit commands to perform one fit for each level of the grouping variable.

 

I used your data table and and ran Fit Y by X with myX and myY respectively.

2022-10-07_14-40-23.960.png

Then I chose the "Group By..." option from the Bivariate menu and used Name as the Grouping variable.

2022-10-07_14-41-15.973.png 2022-10-07_14-41-25.746.png

Then fit a line and got this result:

2022-10-07_14-41-44.993.png 2022-10-07_14-41-54.477.png

-Jeff

View solution in original post

3 REPLIES 3
statman
Super User

Re: How do I get "Group Y by..." option in "Fit Y by X" platform (why it doesn't work)

First,  welcome to the community.

 

Use the Group by when running the platform Fit Y by X.  I have added the script to your data table.

 

"All models are wrong, some are useful" G.E.P. Box
Nic
Nic
Level I

Re: How do I get "Group Y by..." option in "Fit Y by X" platform (why it doesn't work)

What am I doing wrong?

Doctor
Jeff_Perkinson
Community Manager Community Manager

Re: How do I get "Group Y by..." option in "Fit Y by X" platform (why it doesn't work)

Can you explain how it's not working for you? The Group By option will cause the Fit commands to perform one fit for each level of the grouping variable.

 

I used your data table and and ran Fit Y by X with myX and myY respectively.

2022-10-07_14-40-23.960.png

Then I chose the "Group By..." option from the Bivariate menu and used Name as the Grouping variable.

2022-10-07_14-41-15.973.png 2022-10-07_14-41-25.746.png

Then fit a line and got this result:

2022-10-07_14-41-44.993.png 2022-10-07_14-41-54.477.png

-Jeff

Recommended Articles