Dear Stata forum colleagues,
I have learnt a lot by following older threads before, but this is my first personal post.
I have a panel data set of Indian state level data(the panel unit being each State) between 1990-2015 . I currently have one of my variables as GDP per capita over this time frame for each state. However, I would like to create a variable 'Initial GDP per capita' that gives me the 1990 value of GDP per capita for each state, but the variable needs to remain the same (i,e the 1990 value) throughout the time period (for each state).
Additionally, if in case the 1990 value of GDP per capita is missing, I would like STATA to use the 1991 value(or the next available value).
Can someone help me write a command for this?
Many thanks,
Nishanth
Related Posts with new variable for each panel unit
Measuring Cumulative Density/Area Under Kernel Density CurveThe objective of my analysis is calculate non-compliance to minimum wages at the industry-state-year…
"intreg" and "cmp" give different results for interval regressionHello! I am trying to do an interval regression, because my outcome variable (wage) is measured in 9…
Hansen TestIn Roodman's 2009 paper, he notes that a 'very low instrument count also weakens the Hansen test'. I…
how to run a 3 level multilevel model ?hello I wish to make a multi-level analysis with data classified at three levels, namely student cla…
regression discontinuity with multiple cutoffs ("rdms" command): matsize too smallHello everyone, I am performing a regression discontinuity with multiple cutoffs. To this end, I fo…
Subscribe to:
Post Comments (Atom)
0 Response to new variable for each panel unit
Post a Comment