I have a large data set data from the field of education which was coded by grade. The Kindergarten was coded as K, which I changed to 0 so I could treat this data as ordinal. In Stata, when I sort by grade, I get the following and can't seem to get my data in the 'right' order which would be 0-12. Thanks in advance. If it helps, the data are red so I think it still thinks it is string. Also, I apologize I am new to all this.
year Freq. Percent Cum.
0 85,622 13.02 13.02
1 84,395 12.83 25.85
10 23,519 3.58 29.42
11 15,788 2.40 31.82
12 15,196 2.31 34.13
2 87,471 13.30 47.43
3 86,274 13.12 60.54
4 71,705 10.90 71.44
5 51,963 7.90 79.34
6 37,854 5.75 85.10
7 32,982 5.01 90.11
8 28,870 4.39 94.50
9 36,176 5.50 100.00
Total 657,815 100.00
I appreciate the help.
Brynne
Related Posts with This should be quick :)
How do you de-trend an event study plot?I have an event study graph that I plot using coefficients from my dependent variable regressed on t…
Eliminate a part of a stringHello there, I would like to eliminate a part of a string starting from a position recorded in anoth…
how many observations per year in panel dataHi there, I have a panel dataset. How can I see how many observations there are per year? I see in …
Setting the outcome variable in Cox regression.Hi, I am trying to estimate the hazard ratios of the age of first drinking, the goal is to measure …
labsize in points generating strange resultPer the request of my publisher, I am going through a set of graphs and specifying text in point siz…
Subscribe to:
Post Comments (Atom)
0 Response to This should be quick :)
Post a Comment