hi
I have a long data. i would like that each categorie of one variable "class" became a collumn, without change the shape of my dataset. and drop the two additional rows of each date by state.
+----------------------------------------+
| year month state class count |
|----------------------------------------|
1. | 2010 1 11 CZS 4 |
2. | 2010 1 11 Non CZS 8 |
3. | 2010 1 11 Normal 2047 |
4. | 2010 1 12 Non CZS 4 |
5. | 2010 1 12 Normal 1299 |
|----------------------------------------|
6. | 2010 1 13 CZS 7 |
7. | 2010 1 13 Non CZS 35 |
8. | 2010 1 13 Normal 6411 |
9. | 2010 1 14 CZS 1 |
10. | 2010 1 14 Non CZS 5 |
+----------------------------------------+
Related Posts with change from row to collumn without reshape
Delimit Propensity Score to obtain a better matchingHello, I have a general doubt about PSM. The analyses of the graph (using teffects psmatch) are muc…
Best way to write "input files" at top of .do file (macros?)I am interested in listing all of my "input" and "output" files early in my code so that the list is…
How to calculate MSE and MAPE via the do-file or commands?So this is my question: Array …
Saving multiple file names in one .txt or .dat Dear all, I would like to run Monte Carlo simulation in Mplus using 100 data generated from Stata. …
Changing date format in Stata graphsHello, I have daily data from jan 2004 to sep 2017 and I want to have on the x-axis the dates showi…
Subscribe to:
Post Comments (Atom)
0 Response to change from row to collumn without reshape
Post a Comment