Hello Stata people,
I have a panel dataset where the cross-sectional variable is wage (for different individuals) and the longitudinal variable is time.
I only want a time-series of total(wage) (sum of all employees' wages in a given year). I'm not interested in the wages of individuals.
I have used this command: bysort year: egen tot_wage=total(total_income)
Now I have a time series of the tot_wage variable. Unfortunately, because there were i observations in each year, the tot_wage series is replicated i times in each year. These values appear sequentially e.g.
...
2012 | 5000
2012 | 5000
2012 | 5000
2013 | 5500
2013 | 5500
...
Not ideal.
The individuals participating in the wage survey are not the same from year to year so I can't drop all but one person's observations. How might I obtain the simple time series I am after?
Best,
Pascal
Related Posts with Dropping duplicated results with panel data
Testing for autocorrelation in a logistic regression analysis with panel dataI am trying scrutinize the relationship between regimetypes (political regimes eg. closed autocracy,…
How to export unit root test results to excel?Hello, We have estout/esttab, outreg2 commands to exports regression output. Is it possible to expor…
Variables omitted due to multicollinearity- is it about the type of variable?Helle everyone, I'm having some difficulties with a regression. When using xtreg with fixed effects…
Replacing with lagged value.Dear All, I have population data by age brackets(7 age categories *agecats* : 0-14, 15-24, 25-34, 3…
Value weighted returns are the same as equal weighted returnsDear everyone, Im sorry to post something similar as my post yesterday, however it is really importa…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping duplicated results with panel data
Post a Comment