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
Rolling yearly earningsHi all, I am working on a dataset consisting of quarterly company data with multiple companies over…
R (109) error codeHello all, apologies if this is a silly Q but I am a very newbie in Stata and just learning it! I …
How to create new variables from date variables?Hi, I am working with a medicinal tests dataset. Three tests can be prescribed. The doctor can pres…
Ado fastcd: "command fastcd is unrecognized"Hello, I installed the fastcd ado (via search 'fastcd' and then install 'fastcd from http://fmwww.bc…
xtpmg error message when running on logged variablesDear Statalist users, I am running xtpmg on stata 16.0. Running it on my level variables doesn't po…
Subscribe to:
Post Comments (Atom)
0 Response to change from row to collumn without reshape
Post a Comment