Dear Statalisters,
I am working with a dataset at the firm level. The datasets for firms and branches are separate. In the branch dataset, firm IDs are repeated as branches are associated with firms, and the branch IDs are present as a separate variable on the same row.
The dataset includes IDs for firms and their associated branches. Each firm has a unique ID, and each branch also has a unique ID. How can I define firms as a group and branches as subgroup variables related to firms when examining firm and branch data in Stata?
Unfortunately, I cannot share a dataex example with you since I am allowed to work with data on computers that are not connected to the internet. I appreciate your assistance in advance.
Thank you very much.
I am working with a dataset at the firm level. The datasets for firms and branches are separate. In the branch dataset, firm IDs are repeated as branches are associated with firms, and the branch IDs are present as a separate variable on the same row.
The dataset includes IDs for firms and their associated branches. Each firm has a unique ID, and each branch also has a unique ID. How can I define firms as a group and branches as subgroup variables related to firms when examining firm and branch data in Stata?
Unfortunately, I cannot share a dataex example with you since I am allowed to work with data on computers that are not connected to the internet. I appreciate your assistance in advance.
Thank you very much.
Comment