Code in 'ds.checkvar' uncommented and 'ds.var' amended to correct an error (weighted pooled variance).