cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
kabradley13
Level I

One best fit lines with multiple data sets

How do I calculate the residuals of data set B,C, and D using the best fit line of data set A?

1 REPLY 1
txnelson
Super User

Re: One best fit lines with multiple data sets

  1. Run the regression on your initial data table
  2. Go to the red triangle in the output and Save the Predicted Formula, or Save Predicted, both will give you the information you need
  3. Go to the new column and open the formula for Predicted column
  4. Copy the formula into the paste buffer
  5. Go to the new data table you want the residuals for
  6. Create a new column in the data table, and open the formula for the new column.  
  7. Paste the prediction formula into the formula for the new column
  8. Create another new column and name it Residual
  9. Apply a formula which is the Response column minus the Predicted column.  
Jim