Hello everyone,
I have a problem concerning displaying frequencies of different variables in a table. The problem sounds rather straightforward, but I haven't found a way to solve it yet. The (simplified) setting is as follows: I have two variables (and a person identifier) which contain the industry affiliation of a person before and after a certain event. Thus each line of the dataset contains the person identifier, a number (industry-code) indicating the industry the person was affiliated with before the event and a number indicating the industry a person was affiliated with after a certain event. What I would like to have now is a table which shows me how the people were distributed accross industries before and after the event, i.e. a table which shows me the share of people that was affiliated with the different industries before and after the event. To make it a little difficult, there might also be industries that no person was affiliated with before the event but there are persons affiliated with the industry after the event or the other way around. In a second step i would then also see the difference between the shares before and after the event for each industry. I have tried multiple things with tabulate and tabstat, but was not able to produce the desired result. If anyone has an idea or if anything is unclear I'm happy to clarify. Thank you for your help,
cheers,
J. Emmler
I have a problem concerning displaying frequencies of different variables in a table. The problem sounds rather straightforward, but I haven't found a way to solve it yet. The (simplified) setting is as follows: I have two variables (and a person identifier) which contain the industry affiliation of a person before and after a certain event. Thus each line of the dataset contains the person identifier, a number (industry-code) indicating the industry the person was affiliated with before the event and a number indicating the industry a person was affiliated with after a certain event. What I would like to have now is a table which shows me how the people were distributed accross industries before and after the event, i.e. a table which shows me the share of people that was affiliated with the different industries before and after the event. To make it a little difficult, there might also be industries that no person was affiliated with before the event but there are persons affiliated with the industry after the event or the other way around. In a second step i would then also see the difference between the shares before and after the event for each industry. I have tried multiple things with tabulate and tabstat, but was not able to produce the desired result. If anyone has an idea or if anything is unclear I'm happy to clarify. Thank you for your help,
cheers,
J. Emmler
Comment