function for estimating SE