Make sure to load the appropriate libraries and load the data before you begin your analysis. Knit the document early and often to make sure it will knit properly. You will print these documents to submit.
For this first assignments, I have loaded the data and packages for you in the library. In future assignment, use this section for loading the data and library.
This is a test output, you should see the output only when you knit the document.
## Observations: 82
## Variables: 3
## $ year <int> 1629, 1630, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1638, 163…
## $ boys <int> 5218, 4858, 4422, 4994, 5158, 5035, 5106, 4917, 4703, 5359, 536…
## $ girls <int> 4683, 4457, 4102, 4590, 4839, 4820, 4928, 4605, 4457, 4952, 478…
If you would like to include your code chunk, include the command echo = TRUE in your chunk. Name your chunks to help you:
## [1] 4683 4457 4102 4590 4839 4820 4928 4605 4457 4952 4784 5332 5200 4910 4617
## [16] 3997 3919 3395 3536 3181 2746 2722 2840 2908 2959 3179 3349 3382 3289 3013
## [31] 2781 3247 4107 4803 4881 5681 4858 4319 5322 5560 5829 5719 6061 6120 5822
## [46] 5738 5717 5847 6203 6033 6041 6299 6533 6744 7158 7127 7246 7119 7214 7101
## [61] 7167 7302 7392 7316 7483 6647 6713 7229 7767 7626 7452 7061 7514 7656 7683
## [76] 5738 7779 7417 7687 7623 7380 7288
ggplot(data=arbuthnot)+
geom_line(aes(x=year,y=girls,
colour="Girls"),size=.75)+
geom_line(aes(x=year,y=boys,
colour="Boys"),size=.75)+
scale_colour_manual(name="sex",
values=c(Girls="red",Boys="blue"))+
labs(x="Year",
y="Number of Baptisms")+theme_light()Boys over Time
We can see that the Boy ratio to girls from years 1640-7000 was fairly similar with going down and up on the graph at a dramatic rate for both during these years. ## Exercise 4
## min max
## 1 2890 8426
In the years from 1640-1700 the min was 2890 with a max of 8426.
The Graph from the past shows how the rate of baptisms from girls to boys looked as if it has almost reversed from the past years of 1640-1700 to present category of years 1940-2000 where there is a major plummit going down in the year 1660 and then in 1960 the same plummit occured but in reverse going upwards. The magnitudes of the first set of data from year 1640-1700 are very similar to Arbuthnot counts.
Number of boys born over time:
The number of boys over time sarted off strong, in 1940 it began significantly rising and rising until a plummit in 1970. Then just before 2000 hit it began to rise again a significant rate due to the implications of where the world and society was at the time.
The year 1961 was the year with the most number of births in the US due to couples holding off of having children with the implications of the great depression and war in that time until it was officially over.
## year boys girls boy_to_time_ratio total boy_ratio
## 1 1961 2186274 2082052 1114.8771 4268326 0.5122088
## 2 1960 2179708 2078142 1112.0959 4257850 0.5119269
## 3 1957 2179960 2074824 1113.9295 4254784 0.5123550
## 4 1959 2173638 2071158 1109.5651 4244796 0.5120713
## 5 1958 2152546 2051266 1099.3596 4203812 0.5120462
## 6 1962 2132466 2034896 1086.8838 4167362 0.5117064
## 7 1956 2133588 2029502 1090.7914 4163090 0.5125011
## 8 1990 2129495 2028717 1070.0980 4158212 0.5121179
## 9 1991 2101518 2009389 1055.5088 4110907 0.5112054
## 10 1963 2101632 1996388 1070.6225 4098020 0.5128408
## 11 1992 2082097 1982917 1045.2294 4065014 0.5121992
## 12 2000 2076969 1981845 1038.4845 4058814 0.5117182
## 13 1955 2073719 1973576 1060.7258 4047295 0.5123716
## 14 1989 2069490 1971468 1040.4676 4040958 0.5121286
## 15 1964 2060162 1967328 1048.9623 4027490 0.5115250
## 16 2001 2057922 1968011 1028.4468 4025933 0.5111665
## 17 2002 2057979 1963747 1027.9615 4021726 0.5117154
## 18 1954 2059068 1958294 1053.7707 4017362 0.5125423
## 19 1993 2048861 1951379 1028.0286 4000240 0.5121845
## 20 1999 2026854 1932563 1013.9340 3959417 0.5119072
## 21 1994 2022589 1930178 1014.3375 3952767 0.5116894
## 22 1998 2016205 1925348 1009.1116 3941553 0.5115255
## 23 1988 2002424 1907086 1007.2555 3909510 0.5121931
## 24 1953 2001798 1900322 1024.9862 3902120 0.5130027
## 25 1995 1996355 1903234 1000.6792 3899589 0.5119398
## 26 1996 1990480 1901014 997.2345 3891494 0.5114951
## 27 1997 1985596 1895298 994.2894 3880894 0.5116337
## 28 1952 1971262 1875724 1009.8678 3846986 0.5124173
## 29 1987 1951153 1858241 981.9592 3809394 0.5121951
## 30 1985 1927983 1832578 971.2761 3760561 0.5126849
## 31 1965 1927054 1833304 980.6891 3760358 0.5124656
## 32 1986 1924868 1831679 969.2185 3756547 0.5124035
## 33 1951 1923020 1827830 985.6586 3750850 0.5126891
## 34 1970 1915378 1816008 972.2731 3731386 0.5133154
## 35 1947 1899876 1800064 975.7966 3699940 0.5134883
## 36 1982 1885676 1794861 951.4006 3680537 0.5123372
## 37 1984 1879490 1789651 947.3236 3669141 0.5122425
## 38 1983 1865553 1773380 940.7731 3638933 0.5126648
## 39 1981 1860272 1768966 939.0570 3629238 0.5125792
## 40 1980 1852616 1759642 935.6646 3612258 0.5128692
## 41 1966 1845862 1760412 938.8922 3606274 0.5118474
## 42 1969 1846572 1753634 937.8222 3600206 0.5129073
## 43 1949 1826352 1733177 937.0713 3559529 0.5130881
## 44 1971 1822910 1733060 924.8656 3555970 0.5126337
## 45 1950 1823555 1730594 935.1564 3554149 0.5130778
## 46 1948 1813852 1721216 931.1355 3535068 0.5131024
## 47 1967 1803388 1717571 916.8216 3520959 0.5121866
## 48 1968 1796326 1705238 912.7673 3501564 0.5130068
## 49 1979 1791267 1703131 905.1374 3494398 0.5126110
## 50 1978 1709394 1623885 864.2032 3333279 0.5128266
## 51 1977 1705916 1620716 862.8811 3326632 0.5128057
## 52 1946 1691220 1597452 869.0750 3288672 0.5142562
## 53 1972 1669927 1588484 846.8190 3258411 0.5124973
## 54 1976 1624436 1543352 822.0830 3167788 0.5127982
## 55 1974 1622114 1537844 821.7396 3159958 0.5133340
## 56 1975 1613135 1531063 816.7772 3144198 0.5130513
## 57 1973 1608326 1528639 815.1678 3136965 0.5127013
## 58 1943 1508959 1427901 776.6130 2936860 0.5138001
## 59 1942 1444365 1364631 743.7513 2808996 0.5141926
## 60 1944 1435301 1359499 738.3236 2794800 0.5135613
## 61 1945 1404587 1330869 722.1527 2735456 0.5134745
## 62 1941 1289734 1223693 664.4688 2513427 0.5131376
## 63 1940 1211684 1148715 624.5794 2360399 0.5133386