macro to use R or not for computing gelman factors