hatmatrix function

Derive hat matrix from network meta-analysis