powered by
withinvar() subtracts the mean of a vector from the vector itself, and then returns its variance.
withinvar()
withinvar(inmat)
Vector of log(value added output).
withinvar() accepts a vector as input, then subtracts the mean from it and returns the variance.