Work through the general process for hypothesis testing given in Section 5.1 using the data in Table 5.1.
Create a function which takes such a table (of any number of columns) as input and produces the same output as Exercise 5.2.
Work out how to use chisq.test() to perform a goodness of fit test and check the answer from that with the output from your function.
Have we proved that parents stop having children after the first girl? Why?