cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

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

Can you add data points to Least Squares Means Plots?

Within Fit Model, are you able to add your data points to the LS Means Plot?

1 ACCEPTED SOLUTION

Accepted Solutions
AnjaW
Level I

Re: Can you add data points to Least Squares Means Plots?

I don't know the LS Mean platform. But what you could do in the "Standard Least Squares" is, to go to the red triangle and "Save Columns ->Prediction and Interval Formulas". Then you go to the Graph Builder from your data table. Drag your input variable to the x-axis, the prediction formula as well as the actual data column to the y-axis and the upper and lower mean formulas to "Interval". 

In my example I had a factor with five levels, the red points and intervals are the mean prediction with confidence interval and the blue points are actual data points.

AnjaW_0-1746773397447.png

 

View solution in original post

5 REPLIES 5
Byron_JMP
Staff

Re: Can you add data points to Least Squares Means Plots?

If data points are rows, then yes.  
Just save the script to the data table and re-run it after you add data.

...or RTM>Redo>automatic recalc, and as you add rows the models updates

JMP Systems Engineer, Health and Life Sciences (Pharma)
txnelson
Super User

Re: Can you add data points to Least Squares Means Plots?

To add to @Byron_JMP response.  If you use a data filter, and set up a column that discriminates between your original data, and the new data points that you have added, you can specify to only use the original data to generate the model, but show the new data points along with the original points on the LS Means plot.

Jim
BrennenM
Level I

Re: Can you add data points to Least Squares Means Plots?

Thank you both for your replies. I think I either did not explain my problem well or I'm not understanding your responses. My experiments are complete and my model is up to date. Attached is the LS Means Plot I'm working on. @Byron_JMP, if I save my script to my data table and re-run it I get the same result but I'm not changing anything so I'm guessing that makes sense. @txnelson, within the local data filter I see the show and include buttons but even if I select certain factors from my experiment to show or include it doesn't change my plot in any way. I want to see all of my data points on the LS Means Plot and I'm using JMP 18.0.1 if that helps.

AnjaW
Level I

Re: Can you add data points to Least Squares Means Plots?

I don't know the LS Mean platform. But what you could do in the "Standard Least Squares" is, to go to the red triangle and "Save Columns ->Prediction and Interval Formulas". Then you go to the Graph Builder from your data table. Drag your input variable to the x-axis, the prediction formula as well as the actual data column to the y-axis and the upper and lower mean formulas to "Interval". 

In my example I had a factor with five levels, the red points and intervals are the mean prediction with confidence interval and the blue points are actual data points.

AnjaW_0-1746773397447.png

 

BrennenM
Level I

Re: Can you add data points to Least Squares Means Plots?

Thank you!

Recommended Articles