BIOS 330 Assignment Zero

Your assignment is to install and configure R and RStudio to produce an html file from the reproducible knitr document below.
  1. Install R and RStudio, then configure RStudio (choose menu Tools-->Global Options-->Sweave, then change the first drop down menu to "knitr")
  2. Install R packages Hmisc, rms
  3. Copy this template and download the .css file
  4. See also http://data.vanderbilt.edu/fh/R/Hmisc/examples.html

Put the following inside the template:

```{r setup, echo=FALSE}
require(Hmisc)
knitrSet(lang='markdown')
```

# Descriptive Statistics
```{r desc, results='asis'}
getHdata(support)  # download from biostat.mc.vanderbilt.edu/DataSets
html(describe(support))
```

# Relationships
```{r relate}
with(support, table(dzclass, dzgroup))
with(support, plsmo(age, meanbp, group=dzclass))
```

```{r box, w=6, cap="Extended box plots for mean arterial blood pressure and serum creatinine"}
# Floating figure environment, allowing caption and cross-referencing
bpplotM(meanbp + crea ~ dzgroup, data=support, cex.strip=.75)
```


-- FrankHarrell - 08 Jan 2014, 2015-01-02, 2015-01-05, 2016-01-12, 2017-01-10, 2018-01-08
Topic attachments
I Attachment Action Size Date Who Comment
example.pdfpdf example.pdf manage 161.0 K 08 Jan 2014 - 14:30 FrankHarrell example knitr report from ~/doc/latex/knitr
Topic revision: r11 - 08 Jan 2018, FrankHarrell
 

This site is powered by FoswikiCopyright © 2013-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback