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
How to include conditions in program (.ado file)Hi, I am very new to writing programs in Stata. My current project is to write an ado-file to get t…
Convert non numeric values to numeric ones (destring, or encode not properly solve it)Deal all, I would like to convert some non-numeric observations in x1 (numbers not recognized as nu…
range of the estimate of the first differenced independent variable of dependent variable in dynamic panelhi, I am estimating dynamic panel model(n=50, t=15). My question is about the range of the estimate …
Escape character in shell commandI have a long command in a shell escape that includes semicolons. If use -#delimit ;- to allow for a…
Running a function for a subset of observationsHello colleagues, I have a long shaped dataset of 200 countries. I would like to run functions, for…
Subscribe to:
Post Comments (Atom)
0 Response to Generating mean variable by subgroup
Post a Comment