I am running into a wall on applying a predicted class of a state (all 50 states have one of four predicted classes) in 2001 to the rest of the years in the dataset. The data is set as long with the variables state, year, and predclass. Any tips or tricks on how to either (a) change the predclass variable within a state to the 2001 level or (b) create a new variable from these three to apply the 2001 predicted class to the other years?
Thanks in advance.
Related Posts with Coding question
How to produce this type of graph?Hi, I saw this graph in an article and I wonder if it can be produced by Stata. Shamefully, I do no…
Gravity model panel : xtpoisson, ppml, xtpqml, no results , help.Hello everyone Dear Joao Santos Silva I want to estimate a gravity equation on agricultural export…
Two way histogramArray Hi, I am relatively new to Stata and am trying to plot a two-way histogram to compare educatio…
quantile regression with fixed effects in a panel with T=2Hello Statalist, please I would like to ask for help. I am trying to run quantile regression in my i…
Use of rowmean with conditionsThis is something that I have been Googling but couldn't find an answer to. I need to generate a ne…
Subscribe to:
Post Comments (Atom)
0 Response to Coding question
Post a Comment