Updates to erna_regression.R