Good Morning,
I have 2 datasets, one showing immigration flows in Italy (aggregated) and the other one showing different firm-level data.
I merged the 2 datasets m:m (because it is the only way stata allows me to do, although i would prefer to merge 1:m, which results in an error "the variables annoril and areag4 do not uniquely identify observations in the master data").However, after merging m:m, when I try to regress (clustering only for regional area) I get another error: "panels are not nested within the cluster". To solve that I used the command "nonest" at the end of the regression code, which makes the regression work but the results are insignificant (i believe because of those previous procedures). I tried to look for other ways to solve like reporting duplicates and dropping them, which result in an elimination of the whole dataset. I also tried to use the commands vce(jackknife) and vce(bootstrap), that allow me to run the regression but produces even more insignificant results. I also tried to collapse the firm-level dataset (by region and year) which allows me to merge 1:m but then I need to drop some duplicates and when I regress I do not have enough data (error "Insufficient observations").
Do you have any idea on how it should work?
I have 2 datasets, one showing immigration flows in Italy (aggregated) and the other one showing different firm-level data.
I merged the 2 datasets m:m (because it is the only way stata allows me to do, although i would prefer to merge 1:m, which results in an error "the variables annoril and areag4 do not uniquely identify observations in the master data").However, after merging m:m, when I try to regress (clustering only for regional area) I get another error: "panels are not nested within the cluster". To solve that I used the command "nonest" at the end of the regression code, which makes the regression work but the results are insignificant (i believe because of those previous procedures). I tried to look for other ways to solve like reporting duplicates and dropping them, which result in an elimination of the whole dataset. I also tried to use the commands vce(jackknife) and vce(bootstrap), that allow me to run the regression but produces even more insignificant results. I also tried to collapse the firm-level dataset (by region and year) which allows me to merge 1:m but then I need to drop some duplicates and when I regress I do not have enough data (error "Insufficient observations").
Do you have any idea on how it should work?
Comment