Date Assigned: Wednesday, September 6, 2023
Date Due: Monday, September 25, 2023 at one minute before midnight
Do using Rmarkdown. Upload two files to Canvas before the time Canvas says the homework is due
the R markdown source (by convention this has extension .Rmd
) and
the R markdown output. Use output format HTML or output format PDF (your choice). This must be the result of running Rmarkdown on the source you submit.
Rmarkdown file
and the corresponding output
cover the basics of Rmarkdown. For the basics of markdown text formatting, see
For further info on Rmarkdown, the source for all of the course notes is always available for seeing how anything in any of the course notes was done.
Problems 1, 2, 3, 6, 7, 8, 9 of Chapter 1.
For the vegetarian data, Example 1.6.4 in Agesti, do a Bayesian analysis using a uniform (flat) prior on the proportion of vegetarians.
Plot the posterior distribution
Find the posterior mean
Find the posterior median
Find the posterior mode