Dear all,
Im currently working with a panel datatset covering automation risk on occupational- and country-level.
As potentional instrument I would like to use the average automation risk of surrounding countries.
Therefore I need to generate a variable that would calculate the mean of the surrounding countries automation risk, by each year for each country (which has a different set of surrounding countries)
Sadly I have been unable to find a solution for this as of yet
Thanks in advance
Related Posts with Generating mean variable by subgroup
Creating a reelection variable from panel data based on the name of candidatesHi all. I have panel data containing the variables: "year", municipal ID code ("ibge_mun_code"), the…
Editing household IDsDear Users, I have the following household IDs: ID 0009f6b339824d57a39f5696c9c385a6 0011e7ca5a06…
Different results between etregress and FE/OLSDear Statalisters, Using panel data, I estimated treatment effect with different timings of introduc…
missing standard error of coefficientHi everyone! I have a data set that I enclosed here. My dependent variable is tariff. The variable …
Opening file in .dat formatHi, I am currently using the 16th version of STATA on MacOS. I want to open a 4GB document that has…
Subscribe to:
Post Comments (Atom)
0 Response to Generating mean variable by subgroup
Post a Comment