+ Reply to Thread
Results 1 to 7 of 7

Thread: Comparing two linear regression gradients?

  1. #1
    Points: 555, Level: 11
    Level completed: 10%, Points required for next Level: 45

    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Comparing two linear regression gradients?




    Hi,
    I am completely new to linear regression so this may sound daft, but I'm wondering if its possible to test for a significant difference between the gradients of two linear regression lines, and if so how can I do this in SPSS?

    Basically I'm comparing the number of foreign words learnt in a week by adults and children and have two linear regression lines which show that the number of words decreases very rapidly between the ages of 1-10 and much less rapidly between the ages of 20-55. I want to know how I can perform a statistical test to show this difference.

    Thank you!

  2. #2
    TS Contributor
    Points: 12,287, Level: 72
    Level completed: 60%, Points required for next Level: 163
    rogojel's Avatar
    Location
    I work in Europe, live in Hungary
    Posts
    1,471
    Thanks
    160
    Thanked 332 Times in 312 Posts

    Re: Comparing two linear regression gradients?

    Hi, from what you told us it is not clear what the regression model is, but I assume you want to show that there is a significant difference in the slopes of the regression lines for the two age groups adult and child.

    You can analyze all the data together and add a dummy variable for Age ( e.g 1 if Adult 0 if child) . The difference in slopes translates to a significant interaction between this Age variable and whatever X you might have.

    I hope this helps a hit.

  3. #3
    TS Contributor
    Points: 17,779, Level: 84
    Level completed: 86%, Points required for next Level: 71
    Karabiner's Avatar
    Location
    FC Schalke 04, Germany
    Posts
    2,542
    Thanks
    56
    Thanked 640 Times in 602 Posts

    Re: Comparing two linear regression gradients?

    have two linear regression lines which show that the number of words decreases very rapidly between the ages of 1-10 and much less rapidly between the ages of 20-55.
    What did you regress on what? "Number of words learnt" on "age of the learner"?
    "Number of words" on something else?

    With kind regards

    K.

  4. #4
    Points: 555, Level: 11
    Level completed: 10%, Points required for next Level: 45

    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Comparing two linear regression gradients?

    Quote Originally Posted by Karabiner View Post
    What did you regress on what? "Number of words learnt" on "age of the learner"?
    "Number of words" on something else?

    With kind regards

    K.

    Yes, "Number of words learnt" on "age of the learner". I want to compare the linear regression gradients between children and adults

  5. #5
    Omega Contributor
    Points: 38,413, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    7,004
    Thanks
    398
    Thanked 1,186 Times in 1,147 Posts

    Re: Comparing two linear regression gradients?

    rogojel's post is what you would want to do, see post #2. You should also use the word slope not gradients. Lastly, it will be beneficial for you, while learing, to graph these data and see what the results look like in action. Some times this can help you better understand and at times find errors in your processes.
    Stop cowardice, ban guns!

  6. #6
    TS Contributor
    Points: 17,779, Level: 84
    Level completed: 86%, Points required for next Level: 71
    Karabiner's Avatar
    Location
    FC Schalke 04, Germany
    Posts
    2,542
    Thanks
    56
    Thanked 640 Times in 602 Posts

    Re: Comparing two linear regression gradients?

    Quote Originally Posted by hlsmith View Post
    rogojel's post is what you would want to do, see post #2. You should also use the word slope not gradients. Lastly, it will be beneficial for you, while learing, to graph these data and see what the results look like in action. Some times this can help you better understand and at times find errors in your processes.
    He seemingly has only 2 variables, age and number of words.
    Will the introduction of "age category" work here? It is confounded
    with age, i.e. all subjects with age < 20 are "young", all other subjects
    are "old" (and the distinction is data-driven, as it seems, so testing
    could be pointless).

    With kind regards

    K.

  7. #7
    Points: 555, Level: 11
    Level completed: 10%, Points required for next Level: 45

    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Comparing two linear regression gradients?


    Thank you everyone for the help, I've managed to run a t-test comparing the slopes on Excel.

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats