Hi,
I have a panel data from 2003-2018. I have taken the average of (Top Marginal Income Tax from 2003-2010 and 2011-2018). and then sorted it by year.
egen mean_MIT_03_10 = mean(MIT) if year>=2003 & year<2011, by (Region_Name)
egen mean_MIT_11_18 = mean(MIT) if year>=2011 & year<2019, by (Region_Name)
sort year
I now want to create a year index from 2003-2010 and 2011-2018. So that I can create the following graph:
Can anyone please help me? If there is any more calcification you need, please let me know. Thank you.
Related Posts with Year Index
Multivariate repeated measures mixed effects regressionHello, I have a dataset with cognitive ability score measured at two time points. I am interested in…
Is "reshape long" limited by the number of "i"s: too many variables specifiedHi everyone, I am trying to run a reshape long command with 10 variables specified as i (below comma…
Difficulty generating a conditional variableI'm working with some data on NFL football players. I want to generate a variable that reflects how …
Save specific output from multiple regressionsDear all, I am new to Stata and apologies if I post something in a wrong way. I want to run many A…
ppmlhdfe Pseudo R2Hi, I am using the regressor: ppmlhdfe It shows me the Pseudo R2. How could I calculate the R2? T…
Subscribe to:
Post Comments (Atom)
0 Response to Year Index
Post a Comment