manual merger nonsense cleanup
encode variables, panel estimation