+ Reply to Thread
Results 1 to 2 of 2

Thread: How to compare the slopes of two graphs or trend lines

  1. #1
    Points: 6, Level: 1
    Level completed: 11%, Points required for next Level: 44

    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to compare the slopes of two graphs or trend lines




    Hi

    I have 2 variables which trend over time ( by year). One variable is the mutation rate and the other is drug use. There are 333 samples each with a sample specific mutation rate while drugs use is a single variable over the entire year. For e.g.
    ID year rate
    1 2007 3.2 drug use 2007 = 10.4
    2 2008 1.2 drug use 2008 = 4.5
    3 2007 2.1
    etc
    I have been able to graph these (See attached graph), red = mutation and blue = drug use. Trend lines in black for each variable.

    I would like to find out whether annual drug use impacts on mutation rate (which it seems to do) and if this is significant.

    Could I ask what the best test would be to do this? (I have access to SPSS).

    Thanks for the help
    Sebastian
    Attached Images  

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

    Re: How to compare the slopes of two graphs or trend lines


    hi,
    I guess calculating the correlation between the two columns should give you the info.

    regards

+ 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