R code (computer code) to calculate Mathur and VanderWeele's (2020) d, SE, and confidence intervals.
Equations provided in reference below.
Mathur, M.B., & VanderWeele, T.J. (2020). A simple, interpretable conversion from Pearson’s correlation to Cohen’s for d continuous exposures. Epidemiology, 31(2), e16–e18. https://doi.org/10.1097/ ede.0000000000001105