You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
Education
>
CourseBios
>
CourseBios330
>
Bios330Assign0
(09 Jan 2020,
FrankHarrell
)
(raw view)
E
dit
A
ttach
---+ 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") 1 Install R packages =Hmisc, rms= 1 Copy this [[KnitrHtmlTemplate][template]] 1 See also http://hbiostat.org/R/Hmisc/examples.html Put the following inside the template: <highlight> ```{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) ``` </highlight> ----- -- Main.FrankHarrell - 08 Jan 2014, 2015-01-02, 2015-01-05, 2016-01-12, 2017-01-10, 2018-01-08, 2020-01-09
Attachments
1
Attachments
1
Topic attachments
I
Attachment
Action
Size
Date
Who
Comment
pdf
example.pdf
manage
161.0 K
08 Jan 2014 - 14:30
FrankHarrell
example knitr report from ~/doc/latex/knitr
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r13
<
r12
<
r11
<
r10
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r13 - 09 Jan 2020,
FrankHarrell
Main
Department Home Page
Biostatistics Graduate Program
Vanderbilt University Medical Center
Main Web
Main Web Home
Search
Recent Changes
Changes
Topic list
Biostatistics Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2022 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