In this section the formulas for the estimators of Section 2 were implemented. Thus, for adaptive spatial sampling
we have implemented the estimator of the mean (u1), Equation (19), the estimator of the variance of the estimator
30of the mean (varu1), Equation (21) the estimator of the total (Totu1) given by multiplying the number of grids by
the estimator u1, i.e., Totu1 = NN× u1, and the estimator of the variance of Totu1, named TotVaru1.
The %as macro computes the estimators and automatically uses the macros presented previously.