Hi! I want to ask how to merge two matrices in Mata according to id column? This question comes from that I want to do reshape wide procedure in Mata for an unbalanced panel. Or a simpler question is how to generate an indicator column to indicate whether some elements is another set? Like A=(1\2\3\4), B=(1\2). The result I want is a column vector whether A is in B= (1\1\0\0). Thank you!
Best regards,
Lin
Best regards,
Lin
Comment