This function converts the Student's t-test value into a Cohen's d (D) and Hedges' g (G), Odds ratio (OR) and correlation coefficients (R/Z) are then converted from the Cohen's d.
To estimate a Cohen's d the formula used is (table 12.1 in Cooper):
cohen_d=student_t∗n_exp∗n_nexp(n_exp+n_nexp)
To estimate other effect size measures , calculations of the es_from_cohen_d() are applied.