ESTIMATING VARIANCE FUNCTIONS FOR WEIGHTED LINEAR REGRESSION