Professional Documents
Culture Documents
Essentials
■■ R is a free programming language that analyzes data
from a “library” that covers all known statistics. R then
presents statistics, tables, graphs, charts, etc. to a
professional standard.
■■ Topics addressed are: downloading, inputting data,
histograms, subsetting, barplots, colors, scattergrams,
heatmaps, regression, Cronbach’s alpha, factor a nalysis,
Roland Fox is senior lecturer at Salford bootstrapping (repeated tests), errors, and further reading.
Business School, Salford University. He ■■ Once mastered, you can use R for life wherever you go,
graduated from Manchester University
and it will always be up to date because it is open source.
and joined PricewaterhouseCoopers.
Subsequently, he worked in insurance ■■ See Figure 1 for an overview of the process.
and for a multinational company
before taking up a lecturing post. He So what are the problems?
has published a number of papers,
chapters, and books on management
accounting, finance, and education. 1. Typing instructions: These have to be exactly right
in the same way as an Excel instruction, only a bit
more complicated; but remember you are for the most
part copying and pasting from this manual.
2. Seduction: This is a serious problem! Do not try to
“learn” R as in “R made simple” type books—it is too
complicated, do not try! You will pick up a few words of
this language but any more will waste loads of your time.
a. Only use what you need.
b. Do not waste time trying to prettify your output
in R, it can probably be done in Excel or Word—if
you must. R is not a game.
3. Frustration: As every programmer will use it. Sort out your missing values in
know, you have to get used to making Excel, it will take a little longer compared
mistakes and sorting them out. There is with someone who knows how to do it
a help function but it often misidentifies in R but do not be seduced.
the problem.
4. Short cuts: Do not take them! There Remember the advantages: Any
are usually multiple ways in R of getting statistic you want is available in
the same or similar output. The “longer” R, graphs etc. are to a professional
route is in truth a few more minutes. standard.
Wasting hours trying to find a shorter
way is much longer. For example, there
is a missing values procedure in R, don’t
To Start: Google “R
Statistics Free Download”
Or Similar And Follow.
R is very stable, keep it on your l aptop Color Code (Before Using R We Need
or tower or both and it will work in a Convention)
the same way permanently. Apart
from the initial download, you do Use this manual by copying and pasting
not need the internet. the instructions from here to the R program
and changing the GREEN sections as in
Figure 3. Copy the shortened v ersions in
purple. You must copy one line only;
copying an instruction that covers several
lines produces a + sign and an error message!