cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-385840%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EComparaci%C3%B3n%20de%20desplazamiento%20entre%20curvas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-385840%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3ETengo%20dos%20poblaciones%20de%20datos%20en%20un%20gr%C3%A1fico%20Y%20por%20X.%20Quiero%20cuantificar%20de%20alguna%20manera%20la%20diferencia%20entre%20las%20dos%20poblaciones%2C%20pero%20tengo%20un%20par%20de%20problemas.%3C%2FP%3E%3CUL%3E%3CLI%3ELas%20poblaciones%20tienen%20diferentes%20distribuciones%20de%20valores%20de%20x%2C%20lo%20que%20dificulta%20comparar%20promedios%20sin%20cortar%20algunos%20de%20los%20datos.%3C%2FLI%3E%3CLI%3ELas%20tendencias%20se%20curvan%2C%20por%20lo%20que%20no%20puedo%20comparar%20las%20ecuaciones%20f%C3%A1cilmente.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EIdealmente%2C%20estoy%20buscando%20una%20manera%20de%20cuantificar%20la%20diferencia%20%22promedio%22%20en%20Y%20en%20un%20X%20dado.%20%C2%BFHay%20alguna%20manera%20de%20hacerlo%20f%C3%A1cilmente%20dentro%20de%20JMP%3F%3C%2FP%3E%3CP%3EGr%C3%A1fico%20Y%20por%20X%20adjunto.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-385840%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EModelado%20estad%C3%ADstico%20avanzado%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInvestigaci%C3%B3n%20de%20Consumidores%20y%20Mercados%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAcceso%20a%20los%20datos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExploraci%C3%B3n%20y%20visualizaci%C3%B3n%20de%20datos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIngenier%C3%ADa%20de%20Calidad%20y%20Procesos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-385882%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20comparar%20el%20desplazamiento%20entre%20curvas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-385882%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHe%20aqu%C3%AD%20un%20pensamiento.%20Parece%20que%20sus%20curvas%20pueden%20describirse%20bastante%20bien%20mediante%20un%20modelo%20cuadr%C3%A1tico.%20Por%20lo%20tanto%2C%20configure%20sus%20datos%20en%203%20columnas%3A%20Grupo%2C%20X%20e%20Y.%3C%2FP%3E%0A%3CP%3EUtilice%20Ajustar%20modelo.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EY%20entra%20como%20Y.%3C%2FP%3E%0A%3CP%3ECree%20un%20modelo%20con%20efectos%20para%20Grupo%2C%20X%2C%20X%20*%20X%2C%20Grupo%20*%20X%20y%20Grupo%20*%20X%20*%20X.%3C%2FP%3E%0A%3CP%3EEjecute%20el%20modelo%20y%20observe%20las%20estimaciones%20de%20los%20par%C3%A1metros.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELa%20estimaci%C3%B3n%20de%20Grupo%20le%20dar%C3%A1%20el%20desplazamiento%20en%20las%20intersecciones%20de%20los%20modelos.%3C%2FP%3E%0A%3CP%3ELa%20estimaci%C3%B3n%20para%20el%20Grupo%20*%20X%20le%20dar%C3%A1%20el%20cambio%20en%20las%20pendientes%20entre%20los%20dos%20modelos.%3C%2FP%3E%0A%3CP%3ELa%20estimaci%C3%B3n%20del%20Grupo%20*%20X%20*%20le%20dar%C3%A1%20el%20cambio%20en%20los%20t%C3%A9rminos%20cuadr%C3%A1ticos%20entre%20los%20dos%20modelos.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAl%20dividirlo%20de%20esta%20manera%2C%20tiene%20una%20mejor%20descripci%C3%B3n%20de%20qu%C3%A9%20y%20c%C3%B3mo%20se%20diferencian%20los%20grupos%20sin%20tener%20que%20explorar%20TODAS%20las%20X%20posibles%20y%20calcular%20una%20diferencia.%20Pero%20a%C3%BAn%20puedes%20hacerlo%20usando%20el%20generador%20de%20perfiles.%20Coloque%20el%20control%20deslizante%20para%20X%20en%20la%20ubicaci%C3%B3n%20deseada%20y%20observe%20el%20cambio%20en%20el%20perfil%20del%20grupo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-385895%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20comparar%20el%20desplazamiento%20entre%20curvas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-385895%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%2C%20aqu%C3%AD%20tienes%20un%20enfoque%20sencillo.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1)%20Haga%20clic%20con%20el%20bot%C3%B3n%20derecho%20en%20su%20gr%C3%A1fico%20y%20seleccione%20M%C3%A1s%20suave%26gt%3B%20Guardar%20f%C3%B3rmula.%3C%2FP%3E%0A%3CP%3E2)%20Mire%20la%20f%C3%B3rmula%20en%20la%20tabla%20de%20datos%20...%20tendr%C3%A1%202%20piezas%20%22Spline%20Eval%22%2C%20una%20para%20cada%20miembro%20del%20grupo%20...%20algo%20como%20esto%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22brady_brady_0-1621270494707.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_0-1621270494707.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_0-1621270494707.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F32889i43545F439CCF6B5E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22brady_brady_0-1621270494707.png%22%20alt%3D%22brady_brady_0-1621270494707.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E3)%20Copie%20y%20pegue%20cada%20pieza%20individual%2C%20para%20que%20opere%20en%20todas%20las%20filas%2C%20no%20solo%20en%20las%20filas%20que%20pertenecen%20a%20un%20grupo%20espec%C3%ADfico%2C%20en%20una%20nueva%20columna%20de%20f%C3%B3rmula.%3C%2FP%3E%0A%3CP%3E*****%20NOTA%3A%20esto%20puede%20implicar%20una%20extrapolaci%C3%B3n%20en%20su%20caso%2C%20as%C3%AD%20que%20preste%20atenci%C3%B3n%20a%20las%20precauciones%20interpretativas%20relevantes.%20Cada%20f%C3%B3rmula%20se%20ver%C3%A1%20as%C3%AD%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22brady_brady_3-1621271009019.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_3-1621271009019.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_3-1621271009019.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F32892iB0D4FEFC7306A859%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22brady_brady_3-1621271009019.png%22%20alt%3D%22brady_brady_3-1621271009019.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEsto%20producir%C3%A1%20algo%20como%20las%20%C3%BAltimas%202%20columnas%2C%20que%20he%20denominado%20Curva%201%20y%20Curva%202%2C%20en%20su%20tabla%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22brady_brady_1-1621270787914.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_1-1621270787914.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_1-1621270787914.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F32890i46885D3164B4BAF3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22brady_brady_1-1621270787914.png%22%20alt%3D%22brady_brady_1-1621270787914.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EA%20continuaci%C3%B3n%2C%20calcule%20la%20diferencia%20en%20estas%202%20columnas%2C%20utilizando%20una%20nueva%20columna%20de%20f%C3%B3rmula%20o%20una%20transformaci%C3%B3n%20de%201%20clic%20desde%20el%20Generador%20de%20gr%C3%A1ficos%2C%20y%20grafique%20la%20columna%20de%20diferencia%20y%20las%202%20columnas%20de%20f%C3%B3rmula%20que%20cre%C3%B3%20anteriormente%20frente%20a%20x%2C%20para%20ver%20los%20resultados%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22brady_brady_2-1621270859471.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_2-1621270859471.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22brady_brady_2-1621270859471.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F32891i0AE42EE570C234DE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22brady_brady_2-1621270859471.png%22%20alt%3D%22brady_brady_2-1621270859471.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdjunt%C3%A9%20una%20tabla%20con%20secuencias%20de%20comandos%20de%20tablas%20ilustrativas%20y%20columnas%20de%20f%C3%B3rmulas.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESalud%2C%3C%2FP%3E%0A%3CP%3EBrady%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
HarriBradbeer
Level II

Comparing offset between curves

I have two populations of data on a Y-by-X plot. I want to quantify the difference between the two populations somehow, but have a couple of issues.

  • The populations have different distributions of x-values, making it difficult to compare averages without chopping off some of the data.
  • The trends curve, so I can't compare the equations easily.

Ideally, I'm looking for a way to quantify the 'average' difference in Y at a given X. Is there a way I can do this easily within JMP?

Y-by-X plot attached.

2 REPLIES 2

Re: Comparing offset between curves

Here is a thought. Your curves look like they can be described quite well by a quadratic model. So have your data set up as 3 columns: Group, X, and Y.

Use Fit Model.

 

Y goes in as Y.

Build a model with effects for Group, X, X*X, Group*X, and Group*X*X.

Run the model and look at the parameter estimates.

 

The estimate for Group will give you the offset in the intercepts for the models.

The estimate for Group*X will give you the change in the slopes between the two models.

The estimate for Group*X* will give you the change in the quadratic terms between the two models.

 

By breaking it up this way, you have a better description of what and how the groups differ without having to explore EVERY possible X and calculating a difference. But, you could still do that by using the profiler. Place the slider for X at your desired location and look at the change in the Group profile.

Dan Obermiller

Re: Comparing offset between curves

Hi, here is one easy approach.

 

1) Right-click in your graph and select Smoother > Save Formula.

2) Look at the formula in the data table... it will have 2 "Spline Eval" pieces, one for each member in the group.... something like this:

brady_brady_0-1621270494707.png

3) Copy + paste each individual piece, so that it operates on all rows, not just rows belonging to a specific group, into a new formula column.

***** NOTE: this may involve extrapolation in your case, so heed the relevant interpretive cautions. Each formula will look something like this:

brady_brady_3-1621271009019.png

 

This will produce something like the last 2 columns, which I've named Curve 1 and Curve 2, in your table:

brady_brady_1-1621270787914.png

Next, compute the difference in these 2 columns, using a new formula column or a 1-click transform from within Graph Builder, and graph the difference column and the 2 formula columns you previously created vs. x, to view the results:

brady_brady_2-1621270859471.png

 

I've attached a table with illustrative table scripts and formula columns.

 

Cheers,

Brady

 

Recommended Articles