Hi. I have imported an xlsx file in stata, which contains the following table. I am trying to get a stacked bar, but after importing the data, I am unable to destrng the first column of circunstance. I get this message Circunstance: contains nonnumeric characters; no replace
It loos like this
Can someone help me indicating how to change that column in order to be able to do the graph?
Thanks
It loos like this
circunstance | year | percent |
etni | 2014 | 1.2 |
etni | 2017 | 0.34 |
etni | 2021 | 0.52 |
edumo1 | 2014 | 6.9 |
edumo1 | 2017 | 8.62 |
edumo1 | 2021 | 5.2 |
edumo2 | 2014 | 38.27 |
edumo2 | 2017 | 40.34 |
edumo2 | 2021 | 44.39 |
edufa1 | 2014 | 5.46 |
edufa1 | 2017 | 5.99 |
edufa1 | 2021 | 4.51 |
edufa2 | 2014 | 39.98 |
edufa2 | 2017 | 40.64 |
edufa2 | 2021 | 44.78 |
female | 2014 | 3.64 |
female | 2017 | 0.74 |
female | 2021 | 0.04 |
birthreg1 | 2014 | 1.77 |
birthreg1 | 2017 | 0.4 |
birthreg1 | 2021 | 0.19 |
birthreg2 | 2014 | 1.8 |
birthreg2 | 2017 | 0.85 |
birthreg2 | 2021 | 0.31 |
desplaced | 2014 | 0.97 |
desplaced | 2017 | 2.08 |
desplaced | 2021 | 0.05 |
Can someone help me indicating how to change that column in order to be able to do the graph?
Thanks
Comment