I have a string variable in Stata called runningdays. It denotes all of the days in which people ran, for example, for the first person, he ran for day 1, day2, day 3, till day 11. For the fourth last person, he ran for day 8 only.
I need to make a graph which shows the days on which the people ran. Like, on day1, 6 people ran, on day 2, 6 people ran, on day 12, 7 people ran, on day 15, 7 people ran, etc.
Can someone help me with this please? I cannot figure out how to split runningdays and then make a graph.
Thank you!
runningdays
1 2 3 4 5 6 7 8 9 10 11 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
12 13 14 15 |
12 13 14 15 |
3 4 |
3 9 10 |
12 13 14 15 |
8 |
12 13 14 15 |
1 2 3 4 5 6 7 8 9 10 11 |
1 2 3 4 5 6 7 8 9 10 11 |
0 Response to Split a string into numbers and graph
Post a Comment