# Rubric

1. (0 p) Set up your bibliography manager.

3. (3 p) Find three references that relate to your dataset and variables, copy BibTeX reference into your bibliography manager.

4. (2 p) Add your bibliography .bib file to the YAML (top of Rmd file).

5. (3 p) Write a couple short sentences that cite the reference keys following the example below.

6. (2 p) Ensure that the references automatically appear at the bottom of the document.

7. (0 p) Remove anything in this document that does not pertain to your references.

The only references from your S4R_Stat_145.bib file that will appear at the end of a document are those that have been cited in the text. You can use nocite to get a full bibliography but we will not discuss that further here. When you create your *.Rmd file, you will need to add the line bibliography: S4R_Stat_145.bib to the YAML metadata section. If you have more than one *.bib file, place each file indented on a separate line, preceeded with a dash, and make sure to leave a space after the dash.

bibliography:
- First.bib
- Second.bib
- Third.bib

# Set up bibliography manager

## Mendeley users (preferred)

To create an S4R_Stat_145.bib by creating an automatic syncing .bib file,

1. Menu: Tools / Options / BibTeX
2. Check “Enable BibTeX syncing” with “Create one BibTeX file per group” and select the Path to your S4R folder, click OK.
3. Under “My Library” create a group called “S4R_Stat_145”, or something similar (without spaces).
4. Check the Path you specified and see whether there are new *.bib files in that folder.
5. Note, this S4R_Stat_145.bib file will always be up to date with your Mendeley library.

## Zotero users

To create an S4R_Stat_145.bib,

1. Highlight the titles you want to select in Zotero.
2. For Windows users, right click on the highlighted items; for Mac users, Control-click on the highlighted items.
3. Select Export Items. Use the drop down menu to select Bib$$\TeX$$ (not Bib$$\LaTeX$$) as the format.
4. Click OK. Change the name of the file to S4R_Stat_145.bib in the Save As: box.
5. Click Save.

# Citation example

I will use (Beckschäfer et al. 2014; Richert 2013; Murphy 2012; Dean and ebrary, Inc 2014) for this work which was obtained using [@beck2014; @rich2013; @murp2012; @dean2014]. Plus, Beckschäfer et al. (2014) says some interesting stuff and that citation was obtained using @beck2014. For more documentation on bibliographies and citations with R Markdown, see http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html. For general help with R Markdown, see https://www.rstudio.com/wp-content/uploads/2015/03/rmarkdown-reference.pdf.

# References

Beckschäfer, P, L Fehrmann, Rd Harrison, J Xu, and C Kleinn. 2014. “Mapping Leaf Area Index in Subtropical Upland Ecosystems Using RapidEye Imagery and the randomForest Algorithm.” iForest - Biogeosciences and Forestry 7 (1): 1–11. doi:10.3832/ifor0968-006.

Dean, Jared, and ebrary, Inc. 2014. Big Data, Data Mining, and Machine Learning Value Creation for Business Leaders and Practitioners. Wiley & SAS Business Series. Hoboken, NJ: Wiley.

Murphy, Kevin P. 2012. Machine Learning a Probabilistic Perspective. Adaptive Computation and Machine Learning Series. Cambridge, Mass: MIT Press.

Richert, Willi. 2013. Building Machine Learning Systems with Python. Birmingham, UK: Packt Publishing.