How to calculate odds ratio with beta value in R

Viewed 308

Say I want to calculate odds ratio with beta value Beta=0.9. How do I write R code to get OR as shown in the formula below?

enter image description here

1 Answers
# beta = 0.9

OR <- exp(0.9)
OR

# [1] 2.459603
Related