I am trying to prepare a panel dataset based on 4 different rounds of the NSSO enterprise survey datasets. I have appended the 4 different datasets having exactly the same variables in the same order using STATA. Since the data provided by the NSSO is based on sample survey wherein the same sample may not have been surveyed the next year and the sample size also varies from one year to the other. Therefore I want to make a repeated cross-section data using the NIC codes given against each sample enterprise given for each of the 4 years. Now I generated a new variable in the appended dataset called 'nic' which is intended to act as the panel variable using the following command:
egen nic=group(NIC)
When I apply the following command to set the data as panel using the panel variable 'nic', I get an error message:
xtset nic Year, yearly
The error message says: "repeated time values within panel
r(451)".
Kindly help.