computeEffectiveNumObs function

Compute the effective number of observations taking into account autocorrelation