cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
daily_learn
Level I

How to plot fit Y by X plot automatically from many columns

try to plot many fit by x plots and find the RSquare from each linear fit. How can I do it at once? (make all plots and do the linear fit at once)

1. select item to plot: A-1 vs B-1, A-2 vs B-2 ... etc. 

evelyn_learn_0-1692191265752.png

2. Linear fit and find the RSquare

evelyn_learn_2-1692191983272.png

 

3. create the heat map

evelyn_learn_3-1692191995927.png

 

6 REPLIES 6
ron_horne
Super User (Alumni)

Re: How to plot fit Y by X plot automatically from many columns

Hi @daily_learn ,

try using the multivariate platform under the Analysis menu.
just put all your variables in the Y, Columns and run. once it ran you can choose whatever plot you need out of the red triangle including colour maps of the correlations.

let us know if it worked.

peng_liu
Staff

Re: How to plot fit Y by X plot automatically from many columns

A suggestion is to put your data in a different format. Here is the walk through.

Here is the data

peng_liu_0-1692202495134.png

Then "stack" your X variables. Check out menu item "Stack" Under "Tables". In the dialog, uncheck "Stack by Row", check "Drop All" as indicated in the following screenshot.

peng_liu_1-1692202576926.png

Then you get this:

peng_liu_2-1692202668587.png

Do the same on your Y variables and you get this:

peng_liu_3-1692202712887.png

Now, you put them side by side. A copy-n-paste will do. And rename the columns. Get this:

peng_liu_4-1692202797991.png

Now fit your regressions by Label:

peng_liu_5-1692202833988.png

When you do the fit, remember to hold the Control key when you click menu. This will fit model to all By-groups.

peng_liu_6-1692202977432.png

Now right click on the interested number, select Make Combined Data Table.

peng_liu_7-1692203063336.png

Now you should have a bunch of numbers in the generated table, but in an organized way. You can select, subset to get what you want.

 

 

Re: How to plot fit Y by X plot automatically from many columns

@daily_learn ,

 

Another option is to use Response Screening under Analyze>Screening.  It will give you all Y by X pairs and the last tab in the report is a slope tab that has a table with R Squared for each pair. You can ignore the pairs you are not interested.

Chris Kirchberg, M.S.2
Data Scientist, Life Sciences - Global Technical Enablement
JMP Statistical Discovery, LLC. - Denver, CO
Tel: +1-919-531-9927 ▪ Mobile: +1-303-378-7419 ▪ E-mail: chris.kirchberg@jmp.com
www.jmp.com
MRB3855
Super User

Re: How to plot fit Y by X plot automatically from many columns

@daily_learn : In addition to all of those great ideas, you could use the Multivariate platform: Just put in all your Xs and Ys, then take a look at the "Pairwise Correlations" report. The R^2 values can be generated by squaring those correlations: right-mouse click on the Pairwise Correlations output and choose "Make in to Data Table". Then, add a column that is the Correlation squared.

Then Just keep the ones of interest.

daily_learn
Level I

Re: How to plot fit Y by X plot automatically from many columns

thanks for all the answers, am looking for fast mapping method (A vs A1 and B vs B1.. only) instead of choosing wanted or deleted unwanted from the final results.  

txnelson
Super User

Re: How to plot fit Y by X plot automatically from many columns

How I would approach this, is to use 

     Analyze=>Screening=>Response Screening

This will allow you to select the pairwise analyses you want

txnelson_0-1692550302672.png

The platform creates a Pvalues table, which you can easily plot the pairs of X and Y columns using Graph Builder,. and specifying RSquare as the Color column.

txnelson_1-1692550584067.png

The order can easily be changed by setting the Value Order column property

txnelson_2-1692550787363.png

Which when the Apply button is pressed, the graph is changed to:

txnelson_3-1692550848157.png

The Bivariate plots are also available.  By selecting 1, 2, ......n rows in the Pvalues data table, and then clicking on the embedded script, "Fit Selected Items"

txnelson_4-1692551039049.png

A window will be displayed with all of the Bivariate plots within it.

txnelson_5-1692551128791.png

The Fit Line, etc. can then be run.  By holding down the CNTL key as you select Fit Line or any of the other options, the selection will be run on all graphs.

txnelson_6-1692551261112.png

 

 

 

 

Jim