# d = 0.5 corresponds to an odds ratio of about 2.48.
convert_d_or(d = 0.5)
# And back, exactly.
convert_or_d(or = convert_d_or(d = 0.5)$value)
# The null maps to the null: d = 0 is an odds ratio of 1.
convert_d_or(d = 0)
Run the code above in your browser using DataLab