BIOS 7330 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, rmdformats
  3. See this to use as a starter. Remove all the analyses to add those below and any others you want to try.

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 hbiostat.org/data/repo
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)
```