I have the following data set, a panel dataset, (it is an example of what I have, the data set is much larger):
Year Individual Wage Mean_wage (this is the variable I want to create)
1998 1 60 70
1999 1 70 70
2000 1 80 70
1998 2 50 56,56
1999 2 50 56,56
2000 2 70 56,56
I would like to generate a new variable, which is the mean of the wage of each individual over the years, that is, the variable has to has the same value of the individual over the years. Probably, it's not clear, so I have create the variable mean_wage as an example. Anyone can help me?
Thanks!
Related Posts with Generate a new variable as the mean of individuals over time
Error Component Random Parameter Logit Model with Correlated ErrorsHi everyone, I am trying to estimate an Error Component Random Parameter Logit Model with Correlated…
Fama MacBeth RegressionHello, I am using Fama MacBeth regression to estimate macro economic impact on PE returns. I have pr…
Fama MacBeth RegressionHello, I want to run Fama MacBeth Regression and see if changes in macro economy affects PE industry…
Margins Command after Mixed Linear Model with Interaction Term / Guidelines to Marginal EffectsI'm using mixed in Stata 15.1 to analyze a change in my variables at two time points. The data were …
Panel Ordered Logistic Regression with FE/REHi everyone. first english is not my mother launage, so please understand here`s my question Now …
Subscribe to:
Post Comments (Atom)
0 Response to Generate a new variable as the mean of individuals over time
Post a Comment