turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- How to compare two regression coefficients?

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Jan 8, 2010 3:36 AM
(3683 views)

2 groups: A and B

for each case, 2 variables: var1 and var2

i'd like to compare regression coefficient R2 and R2 (between the 2 groups) for the regression curves: var1=R1*var2 and var2=R2*var2

I know how to obtain R1 and R2 (fit y by x (var2=y and var1=x), group by "group", but I don't know how to compare R& and R2 to say there are not equal (or R1>R2).

Thank's for your help.

Nicolas

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Jan 8, 2010 3:47 PM
(5388 views)

Solution

Here is what I would try:

Arrange your data table vertically with three columns: Group (nominal), X and Y (both numeric).

The you can use the Fit Model platform. add Y to Y, and to the effects add Group, X and group*X

The latter is the interaction variable related to any difference in slope. This is obtained by selecting the Group and X in the left list and click on "cross". Alternatively, select Group and X and choose "Full Factorial" from the Macros drop down list. Remember to select the "No intercept" check-box. Personality should be standard least squares (usually default). Run Model!

In the report look at the p-value (Prob > F) for Group*X. The smaller value, the more likely it is that the regression slope coefficients are different.

I use to call method is called Analysis of Covariance (ANCOVA). But I am not sure that it strictly an ANCOVA when there are no intercept parameter. There of course some assumptions about normality etc the need to be met to justify this type of analysis.

Arrange your data table vertically with three columns: Group (nominal), X and Y (both numeric).

The you can use the Fit Model platform. add Y to Y, and to the effects add Group, X and group*X

The latter is the interaction variable related to any difference in slope. This is obtained by selecting the Group and X in the left list and click on "cross". Alternatively, select Group and X and choose "Full Factorial" from the Macros drop down list. Remember to select the "No intercept" check-box. Personality should be standard least squares (usually default). Run Model!

In the report look at the p-value (Prob > F) for Group*X. The smaller value, the more likely it is that the regression slope coefficients are different.

I use to call method is called Analysis of Covariance (ANCOVA). But I am not sure that it strictly an ANCOVA when there are no intercept parameter. There of course some assumptions about normality etc the need to be met to justify this type of analysis.

4 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Jan 8, 2010 5:22 AM
(3095 views)

"var1=R1*var2 and var2=R2*var2" — should that second part be var1=R2*var2 ?

Further, you state var2=y and var1=x, and this doesn't seem to fit either. Seems backwards to me.

Lastly, regression equations usually use b1 and b2 as the regression coefficients, the equation is usually written as y=b0+b1X, and R2 usually denotes the r-squared value. Are you implying that your model contains no intercept?

I would need to know these things before I feel comfortable providing an answer.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Jan 8, 2010 6:02 AM
(3095 views)

OK, I meen:

two variables: x and y

two independent groups: 1 and 2

I have two regression lines : y=0+b1x for 1st group and y=0+b2x for the second group.

The two lines cross "0,0"

I want to show that b1 is different from b2

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Jan 8, 2010 3:47 PM
(5389 views)

Arrange your data table vertically with three columns: Group (nominal), X and Y (both numeric).

The you can use the Fit Model platform. add Y to Y, and to the effects add Group, X and group*X

The latter is the interaction variable related to any difference in slope. This is obtained by selecting the Group and X in the left list and click on "cross". Alternatively, select Group and X and choose "Full Factorial" from the Macros drop down list. Remember to select the "No intercept" check-box. Personality should be standard least squares (usually default). Run Model!

In the report look at the p-value (Prob > F) for Group*X. The smaller value, the more likely it is that the regression slope coefficients are different.

I use to call method is called Analysis of Covariance (ANCOVA). But I am not sure that it strictly an ANCOVA when there are no intercept parameter. There of course some assumptions about normality etc the need to be met to justify this type of analysis.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Jan 9, 2010 12:32 PM
(3095 views)

Hi, thank's.

it works

And for Prob > F, can I take 0,05 as a significant value?

it works

And for Prob > F, can I take 0,05 as a significant value?