I spent times estimating the effect of IPR (intellectual property right) on attracting technological trade at firm level data. However, when I think about it IPR is endogeneous. Could anyone let me know how to do the endogeneity test in stata context? 多谢指教.