Hello Stata users;
I'm using Stata version 13.1 for this, I have this data at hand:
As you can see, it is the yearly evolution of the world population (the size) and the world population growth rate (in %, the values are available starting from 1950 for this variable) from 1700 to 2023, with projections for the two variables from 2024 to 2024.
The idea is to draw the two variable lines on the same graph, with two Y-axes, and with the projected lines (starting from 2024) for the two variables in dashes or short lines (in order to show that those are projections. It would also be helpfull if it's possible to put some values of the extrem points (like, the maximum value that the growth rate reached, the population size for some selected years, ...) on the lines.
Can I get some help with this?
With many thanks!
I'm using Stata version 13.1 for this, I have this data at hand:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int year double World_Population float World_Population_Growth_Rate 1700 595456896 . 1710 617975872 . 1720 648184768 . 1730 670899968 . 1740 702227776 . 1750 753279296 . 1760 788254976 . 1770 827951488 . 1780 900945152 . 1790 942261696 . 1800 983104755 . 1801 986464967 . 1802 989864750 . 1803 993304404 . 1804 996784263 . 1805 1000304675 . 1806 1003866016 . 1807 1007468698 . 1808 1011113144 . 1809 1014799822 . 1810 1020150076 . 1811 1025557675 . 1812 1031616616 . 1813 1038342722 . 1814 1045238421 . 1815 1052307852 . 1816 1059555372 . 1817 1066985519 . 1818 1074603043 . 1819 1082114553 . 1820 1089507052 . 1821 1096534977 . 1822 1103392066 . 1823 1110594705 . 1824 1117897019 . 1825 1125304048 . 1826 1132861806 . 1827 1140524282 . 1828 1148292956 . 1829 1155618460 . 1830 1162497339 . 1831 1168886301 . 1832 1174792985 . 1833 1180213555 . 1834 1185694036 . 1835 1191237685 . 1836 1196838401 . 1837 1202503348 . 1838 1208233715 . 1839 1213934891 . 1840 1219617217 . 1841 1225283810 . 1842 1230929323 . 1843 1236555463 . 1844 1242258939 . 1845 1248042343 . 1846 1253907423 . 1847 1259855932 . 1848 1265889730 . 1849 1271136843 . 1850 1275602897 . 1851 1278768180 . 1852 1281158448 . 1853 1282781891 . 1854 1284514999 . 1855 1286359120 . 1856 1288315736 . 1857 1290386388 . 1858 1292572700 . 1859 1295121860 . 1860 1298027373 . 1861 1301279942 . 1862 1304883100 . 1863 1308825538 . 1864 1312850777 . 1865 1316952210 . 1866 1321129252 . 1867 1325389634 . 1868 1329732282 . 1869 1334654211 . 1870 1340168478 . 1871 1346202715 . 1872 1352896118 . 1873 1360163018 . 1874 1367501771 . 1875 1374940414 . 1876 1382459121 . 1877 1390028839 . 1878 1397666358 . 1879 1405838237 . 1880 1414583216 . 1881 1423919001 . 1882 1433850986 . 1883 1444371648 . 1884 1455021634 . 1885 1465857041 . 1886 1476798447 . 1887 1487893376 . 1888 1499115427 . 1889 1510109709 . end format %ty year
The idea is to draw the two variable lines on the same graph, with two Y-axes, and with the projected lines (starting from 2024) for the two variables in dashes or short lines (in order to show that those are projections. It would also be helpfull if it's possible to put some values of the extrem points (like, the maximum value that the growth rate reached, the population size for some selected years, ...) on the lines.
Can I get some help with this?
With many thanks!

Comment