ExampleCodeIV
Below you can find functions that, inter alia, deliver an IV estimate, perform a Hausmann test on endogeneity and a Sargan test on instrument validity.
IVest.m
This is the function that delivers IV parameter estimates. It will work for exactly and over-identified cases