Add function required by Logistic Regression and Forest Plot analysis.

This function is used in both Logistic Regression and Forest Plot analysis.