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
Structural Impulse Response FunctionsI'm currently doing a SVAR model and the command I input for the structural impulse response functio…
Fighting spaghetti: some small devices using linkplotA common kind of question on Statalist concerns plotting multiple time series. Spaghetti -- tangled …
creating change variables in panel-structureDear Statalists, I am currently working on my master thesis with Paneldata from the German Socioeco…
average annual growth rates in panel dataDear all, I am currently working with a panel dataset, where I have country and year as indicators,…
Calibration Plot - Cox PH ModelHello, I would like to create a calibration plot of my cox proportional hazard model. I ran goodnes…
Subscribe to:
Post Comments (Atom)
0 Response to Coding question
Post a Comment