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

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-523582%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EVergleichen%20Sie%20polynomiale%20Regressionslinien%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-523582%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDies%20mag%20grundlegend%20sein%2C%20aber%20ich%20habe%20M%C3%BChe%2C%20in%20JMP%20einen%20Weg%20zu%20finden%2C%20dies%20zu%20umgehen.%20Verzeihen%20Sie%2C%20wenn%20dies%20in%20diesem%20Forum%20bereits%20diskutiert%20wurde.%20Ich%20m%C3%B6chte%20im%20Wesentlichen%20Regressionslinien%20statistisch%20vergleichen.%20Dies%20sind%20jedoch%20Polynomkurven.%20Alle%20Optionen%2C%20die%20ich%20in%20JMP%20ausprobiert%20habe%2C%20passen%20standardm%C3%A4%C3%9Fig%20zu%20einer%20linearen%20Kurve%2C%20die%20nicht%20gut%20zu%20den%20Daten%20passt.%3C%2FP%3E%3CP%3EKurz%20gesagt%2C%20ich%20m%C3%B6chte%20einen%20Hypothesentest%20durchf%C3%BChren%2C%20um%20zu%20beurteilen%2C%20ob%20es%20Unterschiede%20zwischen%20den%20Kategorien%20in%20meinem%20Datensatz%20gibt.%20Ich%20kann%20dies%20mit%20dem%20Dialogfeld%20%22Modell%20anpassen%22%20tun.%20Aber%20ich%20kann%20die%20Regression%20nicht%20als%20Polynome%203.%20Ordnung.%20Daher%20wendet%20JMP%20automatisch%20eine%20lineare%20Anpassung%20an.%3C%2FP%3E%3CP%3EGibt%20es%20eine%20M%C3%B6glichkeit%2C%20JMP%20anzuweisen%2C%20im%20Dialogfeld%20%22Modell%20anpassen%22%20eine%20Polynomanpassung%20durchzuf%C3%BChren.%3C%2FP%3E%3CP%3EDeine%20Hilfe%20ist%20wilkommen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-523582%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAnalytik%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatentabelle%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-523913%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Polynomiale%20Regressionslinien%20vergleichen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-523913%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20finde%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9474%22%20target%3D%22_blank%22%3E%20%40Georg%3C%2FA%3E%20geholfen%2C%20aber%20nicht%20weit%20genug%20gegangen.%20Das%20hei%C3%9Ft%2C%20Sie%20m%C3%BCssen%20Interaktionsterme%20f%C3%BCr%20alle%20X-Terme%20hinzuf%C3%BCgen.%20Hier%20ist%20das%20gleiche%20Beispiel%2C%20aber%20mit%20einem%20Interaktionsterm%20f%C3%BCr%20alle%20%3Aheight-Terme%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22diff%20poly.PNG%22%20style%3D%22width%3A%20524px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22diff%20poly.PNG%22%20style%3D%22width%3A%20524px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22diff%20poly.PNG%22%20style%3D%22width%3A%20524px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F44146i20FFBF560C8F405C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22diff%20poly.PNG%22%20alt%3D%22diff%20poly.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%3EDieser%20Fall%20kommt%20also%20zu%20dem%20Schluss%2C%20dass%20es%20keinen%20Bedarf%20f%C3%BCr%20einen%20eindeutigen%20Schnittpunkt%2C%20Term%20erster%20Ordnung%20oder%20zweiter%20Ordnung%20%C3%BCber%20die%20Geschlechter%20hinweg%20gibt.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBeachten%20Sie%2C%20dass%20diese%20Effekttests%20f%C3%BCr%20einen%20Unterschied%20in%20den%20Parametersch%C3%A4tzungen%20zwischen%20den%20Gruppen%20geeignet%20sind.%20Sie%20sind%20f%C3%BCr%20die%20Gleichwertigkeit%20nicht%20geeignet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-523612%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Polynomiale%20Regressionslinien%20vergleichen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-523612%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EWenn%20Sie%20einen%20formalen%20statistischen%20Test%20zum%20Vergleichen%20der%20Kurven%20w%C3%BCnschen%2C%20w%C3%BCrden%20Sie%20die%20kategoriale%20Variable%20in%20das%20Modell%20einf%C3%BCgen.%20In%20Georgs%20Beispiel%20w%C3%A4re%20Ihr%20Modell%20Gr%C3%B6%C3%9Fe%2C%20Gr%C3%B6%C3%9Fe%5E2%2C%20Gr%C3%B6%C3%9Fe%5E3%2C%20Geschlecht%2C%20Geschlecht*Gr%C3%B6%C3%9Fe%2C%20Geschlecht*Gr%C3%B6%C3%9Fe%5E2%2C%20Geschlecht*Gr%C3%B6%C3%9Fe%5E3.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDer%20Test%20des%20Parameters%20f%C3%BCr%20Sex%20w%C3%BCrde%20Ihnen%20sagen%2C%20ob%20es%20Unterschiede%20in%20den%20Intercepts%20gibt.%3C%2FP%3E%0A%3CP%3EDer%20Test%20des%20Parameters%20Geschlecht*H%C3%B6he%20w%C3%BCrde%20Ihnen%20sagen%2C%20ob%20es%20Unterschiede%20in%20den%20Steigungen%20der%20Gr%C3%B6%C3%9Fe%20gibt.%3C%2FP%3E%0A%3CP%3EDer%20Test%20von%20Sex*H%C3%B6he%5E2%20w%C3%BCrde%20Ihnen%20sagen%2C%20ob%20es%20Unterschiede%20in%20den%20Sch%C3%A4tzungen%20der%20quadratischen%20Parameter%20gibt.%3C%2FP%3E%0A%3CP%3EDer%20Test%20von%20Sex*H%C3%B6he%5E3%20w%C3%BCrde%20Ihnen%20sagen%2C%20ob%20es%20Unterschiede%20in%20den%20kubischen%20Parametern%20gibt.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-523610%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Polynomiale%20Regressionslinien%20vergleichen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-523610%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESie%20k%C3%B6nnen%20dieses%20Modell%20auch%20in%20der%20Fit-Model-Plattform%20erstellen%20(Makros%20--%26gt%3B%20Polynom%20zu%20Grad%20...)%2C%3C%2FP%3E%0A%3CP%3EMit%20Sex%20in%20By-role%20k%C3%B6nnen%20Sie%20separate%20Regressionsmodelle%20anpassen%2C%20als%20Formel%20speichern%20und%20nach%20Bedarf%20vergleichen.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Georg_0-1658265240895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Georg_0-1658265240895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Georg_0-1658265240895.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F44136iE71D93EA905B76F3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Georg_0-1658265240895.png%22%20alt%3D%22Georg_0-1658265240895.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%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-523604%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Polynomiale%20Regressionslinien%20vergleichen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-523604%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20Georg%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDanke%2C%20aber%20das%20hilft%20meiner%20Situation%20nicht%20weiter.%20Ich%20habe%20zwei%20kategoriale%20Variablen%2C%20mit%20denen%20ich%20die%20Regressionen%20vergleichen%20muss.%3C%2FP%3E%3CP%3EDas%20Fit%20Y%20by%20X%20hilft%20also%20nicht%2C%20es%20sei%20denn%2C%20es%20gibt%20einen%20Weg%2C%20den%20ich%20nicht%20kenne.%3C%2FP%3E%3CP%3EWas%20ich%20tun%20muss%2C%20ist%2C%20eine%20polynomische%20Kurve%20durch%20das%20Dialogfeld%20%22Modell%20anpassen%22%20anzupassen.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-523595%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Polynomiale%20Regressionslinien%20vergleichen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-523595%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIn%20der%20Plattformanpassung%20y%20nach%20x%20k%C3%B6nnen%20Sie%20eine%20Polynomregression%20durchf%C3%BChren%20und%20auch%20den%20Konfidenzbereich%20anzeigen.%3C%2FP%3E%0A%3CP%3Evielleicht%20hilft%20das%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Georg_0-1658262153553.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Georg_0-1658262153553.png%22%20style%3D%22width%3A%20325px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Georg_0-1658262153553.png%22%20style%3D%22width%3A%20325px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F44134i9DFA535C3B38C24F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Georg_0-1658262153553.png%22%20alt%3D%22Georg_0-1658262153553.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%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Ben11
Level II

Compare polynomial regression lines

This may be basic but I'm struggling to find a way around this in JMP. Pardon me if this has been discussed previously on this forum. I essentially want to statistically compare regression lines. However, these are polynomial curves. All the options I have tried in JMP fits a linear curve by default which is not a good fit for the data.

Briefly, I want to perform a hypothesis test to assess whether there are differences among the categories within my dataset. I am able to do this using the 'Fit Model' dialog. But I am unable to the regression as 3rd order polynomials. Hence, JMP automatically applies a linear fit.

Is there a way to tell JMP to perform polynomial fitting in the "Fit Model" dialog. 

Your help is appreciated.

3 ACCEPTED SOLUTIONS

Accepted Solutions
Georg
Level VII

Re: Compare polynomial regression lines

You can build this model as well in fit model platform (Macros --> Polynomial to degree ...),

using sex in By-role you can fit separate regression models, save them as formula and compare them as you need.

Georg_0-1658265240895.png

 

 

Georg

View solution in original post

Re: Compare polynomial regression lines

If you want a formal statistical test to compare the curves, then you would add the categorical variable into the model. Using Georg's example, your model would be Height, Height^2, Height^3, Sex, Sex*Height, Sex*Height^2, Sex*Height^3.

 

The test of the parameter for Sex would tell you if there are differences in the intercepts. 

The test of the Sex*Height parameter would tell you if there are differences in the slopes of Height.

The test of Sex*Height^2 would tell you if there are differences in the quadratic parameter estimates.

The test of Sex*Height^3 would tell you if there are differences in the cubic parameters.

Dan Obermiller

View solution in original post

Re: Compare polynomial regression lines

I think @Georg helped but didn't go far enough. That is to say, you need to add interaction terms for all the X terms. Here is the same example, but with an interaction term for all the :height terms:

 

diff poly.PNG

 

So this case concludes that there is no need for a unique intercept, first-order, or second-order term across sexes.

 

 

Note that these effect tests are appropriate for a difference in the parameter estimates across groups. They are not appropriate for equivalence.

View solution in original post

5 REPLIES 5
Georg
Level VII

Re: Compare polynomial regression lines

In platform fit y by x you can perform polynomial regression, and you can also show confidence region,

maybe this helps?

 

Georg_0-1658262153553.png

 

Georg
Ben11
Level II

Re: Compare polynomial regression lines

Hello Georg,

 

Thanks but this doesn't help my situation. I have two categorial variables by which I need to compare the regressions. 

So the Fit Y by X doesn't help, unless there's some way around this that I don't know.

What I need to do is fit a polynomial curve through the Fit Model dialogue.

 

Georg
Level VII

Re: Compare polynomial regression lines

You can build this model as well in fit model platform (Macros --> Polynomial to degree ...),

using sex in By-role you can fit separate regression models, save them as formula and compare them as you need.

Georg_0-1658265240895.png

 

 

Georg

Re: Compare polynomial regression lines

If you want a formal statistical test to compare the curves, then you would add the categorical variable into the model. Using Georg's example, your model would be Height, Height^2, Height^3, Sex, Sex*Height, Sex*Height^2, Sex*Height^3.

 

The test of the parameter for Sex would tell you if there are differences in the intercepts. 

The test of the Sex*Height parameter would tell you if there are differences in the slopes of Height.

The test of Sex*Height^2 would tell you if there are differences in the quadratic parameter estimates.

The test of Sex*Height^3 would tell you if there are differences in the cubic parameters.

Dan Obermiller

Re: Compare polynomial regression lines

I think @Georg helped but didn't go far enough. That is to say, you need to add interaction terms for all the X terms. Here is the same example, but with an interaction term for all the :height terms:

 

diff poly.PNG

 

So this case concludes that there is no need for a unique intercept, first-order, or second-order term across sexes.

 

 

Note that these effect tests are appropriate for a difference in the parameter estimates across groups. They are not appropriate for equivalence.

Recommended Articles