I am currently writing my master thesis and need to check how percentages of females on the management board of firms in the US and Germany impact sustainability practices of those firms.
Therefore I use 40 German firms and 95 US firms and I wish to analyse those with panel data regression in STATA. However, I seem to face some problems because the way I organize my data is the following: I put the country in the first column and add 1 as a country ID for Germany and 2 for US in the second column. Then I have the years and then ESG scores and then female percentages as my dependent and independent variables the last two.
However when I wish to declare my data as panel data it does not work and
. xtset compid Year
repeated time values within panel
r(451);
. occurs.
I think this is due to the fact that I have several companies for the countries and therefore several times data for one year. Do you know how to solve that issue so to show to STATA that I have only 2 countries but in those countries several companies? Or can I only control for the country meaning I have to add all the data for each firm of 2014 for example together and divide it by the number of companies I have for that country. Because it seems that I have two panel data, first the country and second the companies in that country.
Related Posts with Panel data error due to several companies inside country
How to break down the values of one columns to different columns?Hi In my survey, I had a ranked order question. I asked the participants to rank 6 variables from 1 …
Fixed effects corner solution response model (Tobit)Dear Statalist community, I would like to request your help for implementation of a specific econom…
How to compute average of two values within the same cell?Hi I have a variable named age_range (with storage type: str5) as you can see in the following tabl…
Can we do a Latent Profile Analysis in Stata15?I wonder if we can run a latent profile analysis in Stata15. If we can, could you recommend any web …
Reshape data to create a stacked horizontal bar-graph, such as catplot from ssc, for several variablesDear all, First of all, I am really sorry this post is so long winded. I was not sure how much info…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data error due to several companies inside country
Post a Comment