Hi everyone,
I have faced a problem, and it takes so much time for me and couldn't figure it out.
I have a large dataset of people and the firm they were working over years. Since the data is sampled, some individuals have missing information about firms. I would like to replace firms in the years that the data is missing and, with a dummy variable, mark it for future usage.
To clarify more, In a simple case, I would like to identify the ones with the red mark.
If it would be helpful let me share my unsuccessful attempts
Thanks in advance.

I have faced a problem, and it takes so much time for me and couldn't figure it out.
I have a large dataset of people and the firm they were working over years. Since the data is sampled, some individuals have missing information about firms. I would like to replace firms in the years that the data is missing and, with a dummy variable, mark it for future usage.
To clarify more, In a simple case, I would like to identify the ones with the red mark.
If it would be helpful let me share my unsuccessful attempts

Thanks in advance.

Comment