+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 19 of 19

Thread: t-test to find differences between groups

  1. #16
    Points: 125, Level: 2
    Level completed: 50%, Points required for next Level: 25

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: t-test to find differences between groups



    Thank you, I'll try it. I'm really unfamiliar with statistics, but this forum is great; thanks for your quick responses! Suppose I come back tomorrow with more questions :-)

  2. #17
    Points: 125, Level: 2
    Level completed: 50%, Points required for next Level: 25

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: t-test to find differences between groups

    Hi again! Thanks again for your responses!

    I tried today: I made a new Excel file, containing only two columns: clicks_above and clicks_below
    I calculated the Two-Group mean comparison test, then an error occurs:
    . ttest clicks_below, by(clicks_above)
    more than 2 groups found, only 2 allowed r(420);

    No idea why the error occurs!!!

    It works if I calculate the Two-sample mean comparison test, but that’s the wrong test, or?

    Thanks a lot for your response!

  3. #18
    Multicollinearity hater
    Points: 6,317, Level: 51
    Level completed: 84%, Points required for next Level: 33
    victorxstc's Avatar
    Posts
    721
    Thanks
    163
    Thanked 172 Times in 156 Posts

    Re: t-test to find differences between groups

    Thats good. I think that was my oops to say put each column name into one of the empty boxes.

    Now please cut and paste the content of one of the columns in the other column, exactly below the final cell of the first column. Now you have a column in which both clicks_above and clicks_below are included. Rename that column to "Clicks" or something similar, and remember that where your clicks_above and clicks_below cells stand. Now name the adjacent column to "grouping column" or something similar. In the "grouping column" Put a "1" beside each cell belonging to clicks_above group and put a "0" besides the cells in "Cllicks" column that belong to "clicks_below" group.

    Now you have two columns. One has all your data, another has the pattern of distribution of your data into two groups. Now copy these two new columns into Stata and follow the above directions. When you saw two empty boxes, put the columns into the variable and grouping variable boxes and run the test.

  4. #19
    Points: 125, Level: 2
    Level completed: 50%, Points required for next Level: 25

    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: t-test to find differences between groups


    Ahh, I see, I need a dummy variable! Makes sense, I'll try tomorrow. Your're great help!!

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

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