Hi,
I have 51 state name variables(long data) and income data (e.g.starting from inc_JAN_1996, inc_Feb_1996, ..., inc_Dec_2004, ..., inc_Dec_2005) with a wide shape.
In other words, I have 51 long shaped and 120 wide shaped dataset and want to change into long data.
--------------------
reshape long inc_Jan inc_Feb ... inc_Dec, i(statename) j(year)
_____________
From this command, I could get only year data. Please help me to extract month and year data.
Thanks in advance.
Related Posts with How do I extract month and year data from combined variables?
Different order of integration - Var and granger causalityHello everyone, I would like to perform a granger causality test between two variables, A and B. H…
xtreg gives coefficients for outcome variablesHey dear Stata-Users! I have a question regarding xtreg: I run a regression model with different de…
all possible pairwise combinations for specific companies in a specific year and in a specific country without repititionHello, I would like to find all possible pairwise combinations for specific companies in a specific …
Replace values of one variable according to the categories of anotherHi all! I hope you can guide me in the following question. In te following dataset: id Ya Yb id_2 …
Mlogit: P-value dosen't appear when doing margins.Me and my group is currently working on our exam, but we have an issue. The main issue is, that it …
Subscribe to:
Post Comments (Atom)
0 Response to How do I extract month and year data from combined variables?
Post a Comment