On a partitioned inversion formula having useful applications in econometrics