+ Reply to Thread
Results 1 to 11 of 11

Thread: Odds ratio and p-value

  1. #1
    Points: 2, Level: 1
    Level completed: 3%, Points required for next Level: 48

    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Odds ratio and p-value




    could anyone plz help me out....
    PRESCENCE OF INURY TO OCULAR ADNEXAE
    YES NO
    MILD 70 12
    MODERATE 13 1
    SEVERE 4 2

    i want to find the odds ratio and p value of each row,namely mild injury,moderate injury and severe injury....how do i do it...?

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

    Re: Odds ratio and p-value

    Not sure you know what you really want.


    First, which row will be your reference group? Since typically this table would be used to only generate two odds ratios.

  3. #3
    Fortran must die
    Points: 58,790, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,532
    Thanks
    692
    Thanked 915 Times in 874 Posts

    Re: Odds ratio and p-value

    You have to actually run the data in logistic regression. No one calculates odds ratios or p values manually. You have way to little data to get meaningful responses...
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

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

    Re: Odds ratio and p-value

    All right just for fun, I ran this in a logistic regression model with a penalization (firth) for small cell values, I also corrected the 95% confidence intervals using Bonferroni Correction to address false discovery. You don't need a p-value if you have confidence intervals.


    Odds Ratio Estimates and Profile-Likelihood Confidence Intervals


    Moderate vs Mild: 1.596 (95% CI: 0.276, 24.059)

    Severe vs Mild: 0.319 (95% CI: 0.049, 2.710)


    No linear trend in outcome when looking mild to severe exposure levels.

  5. The Following User Says Thank You to hlsmith For This Useful Post:

    noetsi (09-04-2015)

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

    Re: Odds ratio and p-value

    OK, in all seriousness - if you just need to generate odds ratios, the first step would be to make two 2x2 tables. Ideally with the same reference group in each (bottom row). Then alphabetize the cells row 1 (A, B) and row 2 (C, D).


    Next do the following (A times D) / (B times C), that is the odds ratio for that table. You will also want to add 95% confidence intervals to it. Once you do the above post your answers and we can talk about the CIs.

  7. #6
    Fortran must die
    Points: 58,790, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,532
    Thanks
    692
    Thanked 915 Times in 874 Posts

    Re: Odds ratio and p-value

    And no one outside a university course will every do that

    Its a good idea to use firth never thought of that. I did not know about the bonferoni correction.

    The CI will tell you if the results are significant. They won't tell you what the specific p value is.
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

  8. #7
    Human
    Points: 12,686, Level: 73
    Level completed: 59%, Points required for next Level: 164
    Awards:
    Master Tagger
    GretaGarbo's Avatar
    Posts
    1,363
    Thanks
    455
    Thanked 462 Times in 402 Posts

    Re: Odds ratio and p-value

    Quote Originally Posted by noetsi View Post
    And no one outside a university course will every do that
    And what do you know about that? There are lots of companies that are doing bad things, but also many great serious companies.

    Quote Originally Posted by noetsi View Post
    I did not know about the bonferoni correction.
    Yes,you did! We have talked about it many times!
    (But he was a person, so should he not be spelled with an upper case B in English?)

    Quote Originally Posted by noetsi View Post
    The CI will tell you if the results are significant. They won't tell you what the specific p value is.
    No, but the "CI" will tell you the confidence interval, and that is considered more informative.

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

    Re: Odds ratio and p-value

    Quote Originally Posted by GretaGarbo View Post

    (But he was a person, so should he not be spelled with an upper case B in English?)

    Apparently without eyebrows?


    But what about Firth? He was a person too. Don't you have love for him?

  10. The Following User Says Thank You to hlsmith For This Useful Post:

    GretaGarbo (09-04-2015)

  11. #9
    Fortran must die
    Points: 58,790, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,532
    Thanks
    692
    Thanked 915 Times in 874 Posts

    Re: Odds ratio and p-value

    GretaGarbo I knew about the bonferoni correction. I did not know it was used as hlsmith used it.

    When I said no one used this approach I meant no one manually calculated odds ratios and p values. They normally use a computer. Only in classes do you do things like manually calculate these.

    Its interesting that the CI is considered more informative. In the journals I have read in the social sciences it is the p value that was stressed, the CI rarely gets mentioned. But my real point is the OP wanted to know a p value not a CI. Calculating a P value by hand would be really really hard.

    Bonferoni probably should be capitalized. But I don't think it usually is much like firth is not.
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

  12. #10
    Human
    Points: 12,686, Level: 73
    Level completed: 59%, Points required for next Level: 164
    Awards:
    Master Tagger
    GretaGarbo's Avatar
    Posts
    1,363
    Thanks
    455
    Thanked 462 Times in 402 Posts

    Re: Odds ratio and p-value

    Quote Originally Posted by hlsmith View Post
    Apparently without eyebrows?
    Yes, from now on it will be called the-no-eyebrows-correction.

    Quote Originally Posted by hlsmith View Post
    But what about Firth? He was a person too. Don't you have love for him?
    Amusingly, I can say: I did not know about the Firth correction! So, thank you, one gains and learns.



    Quote Originally Posted by noetsi View Post
    GretaGarbo I knew about the bonferoni correction. I did not know it was used as hlsmith used it.
    No, you literally said: "I did not know about the bonferoni correction."


    Quote Originally Posted by noetsi View Post
    When I said no one used this approach I meant no one manually calculated odds ratios and p values. They normally use a computer. Only in classes do you do things like manually calculate these.
    OK, I misunderstood you. But I would not be surprised if someone got the raw data in excel and picked out the old textbook and did the calculations "manually" with a pocket calculator of with excel.

    Quote Originally Posted by noetsi View Post
    Its interesting that the CI is considered more informative. In the journals I have read in the social sciences it is the p value that was stressed, the CI rarely gets mentioned. But my real point is the OP wanted to know a p value not a CI. Calculating a P value by hand would be really really hard.
    I have heard a epidemiology professor say that "now days" (since the last 15 years, I believe) confidence intervals (CI) are more popular.
    Of course a CI can be calculated from a series of tests - all the values outside of the CI can be rejected with the test, and all values within the CI can not be rejected. So in that sense CI:s and test contain the same information (there is a correspondence theorem). But people does not misunderstand the CI:s as much as p-values.

    And you are right the original poster asked for p-values.

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

    Re: Odds ratio and p-value


    The other issues with p-values is they do not show the magnitude nor the direction of association. I can say in medicine the analysts have made a huge push to get away from p-value fetishes.

+ 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