Download Workflow of statistical data analysis - 2011

Transcript
c Oliver Kirchkamp
Workflow
[ 18th July 2013, 10:26 ] — 1
Workflow of empirical work may seem obvious. It is not. Small
initial mistakes can lead to a lot of hard work afterwards. In this
course we discuss some techniques that hopefully facilitate the organisation of your empirical work.
This handout provides a summary of the slides from the lecture.
It is not supposed to replace a book.
Many examples in the text are based on the statistical software
R. I urge you to try these examples on your own computer.
As an attachment of this PDF you find a file wf.zip with some
raw data. You also find a file wf.Rdata with some R functions and
some data already in R’s internal format.
The drawing on the previous page is Albercht Dürer’s “Der
Hafen von Antwerpen” — an example for workflow in a medieval
city.
Contents
1
2
Introduction
1.1 Motivation . . . . . . . . . . . . .
1.2 Structure of a paper . . . . . . . .
1.3 Aims of statistical data analysis .
1.4 Creativity and chaos . . . . . . .
1.5 Making the analysis reproducible
1.6 Preserve raw data . . . . . . . . .
1.7 Interaction with coauthors . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4
. 4
. 6
. 6
. 8
. 11
. 12
. 13
Digression: R
2.1 Installation of R . . . .
2.2 Types and assignments
2.3 Functions . . . . . . . .
2.4 Random numbers . . .
2.5 Example Datasets . . .
2.6 Graphs . . . . . . . . .
2.7 Basic Graphs . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
13
13
14
18
19
20
23
23