SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Introduction into R
Richard L. Zijdeman
28 May 2015
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
1 Quantitave research methods
2 Statistical Software
3 Introducing R vocabulary
4 Getting help
5 Installing R and RStudio
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Quantitave research methods
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Why
To answer descriptive and explanatory questions on populations
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Workflow: PTE
problem (research question)
theory (hypothesis)
empirical test . . . with loops between T-E and P-T-E
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Research Questions
descriptive (to what extent. . . )
comparative (comparing two entities)
trend (comparison over time)
explanatory (focus on mechanism at hand)
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Theory
deductive reasoning
explanans
general mechanism
condition
explanandum (hypothesis)
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Empirical test
sample vs. population
random vs. stratified samples
testing technique, e.g.:
T-test, correlation, regression
Software required for faster analysis
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Statistical Software
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
The dangers of analysing with spreadsheets
(e.g. MS Excel)
tempting to input and clean data in the same sheet
difficult to track cleaning rules
defaults mess up your data (e.g. 01200 -> 1200)
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Why use syntax (scripting)
Efficiency (really)
Quality (error checking)
Replicatability
Communication
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
R
R is open source, which is good and bad:
anybody can contribute (check, improve, create code)
free of charge
but: R depends on collective action
cannot ‘demand’ support
sprawl of packages
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
RStudio
browser for R
provides easy access to:
scripts
data
plots
manual
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Introducing R vocabulary
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
R script
* series of commands to manipulate data
* always save your script, NEVER change your data
original data + script = reproducable research
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
R Session
* contains scripts, data, functions
* can be saved 'workspace image'
* prefer not to:
+ sessions are usually cluttered
+ only useful if running script takes time
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Assignment
* 'attach' values to an object (e.g. a variable)
x <- 5
y <- 4
z <- x*y
print(z)
## [1] 20
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Assignment II
Try and imagine the potential of assignment
x <- c(4, 3, 2, 1, 0, 27, 34, 35)
# 'c' for concatenate values
y <- -1
z <- x*y
print(z)
## [1] -4 -3 -2 -1 0 -27 -34 -35
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Data.frame
basically a table
contains columns (variables)
contains rows (cases)
“flat table” in Kees’ terminology
my.df <- data.frame(x,z)
str(my.df) # show STRucture
## 'data.frame': 8 obs. of 2 variables:
## $ x: num 4 3 2 1 0 27 34 35
## $ z: num -4 -3 -2 -1 0 -27 -34 -35
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Packages and libraries
base R (core product)
additional packages
CRAN repository
spread through ‘mirrors’
choose a local, but active mirror
Github
packages not on CRAN
development versions of CRAN libraries
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Getting help
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Build-in help: “?”
?[function] / ?[package]
e.g. “?plot” or “?graphics”
check the index for user guides and vignettes
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Cran website
Manuals
R FAQ
R Journal
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Online communities
Stackoverflow
Instance of Stackexchange
Reputation based Q&A
Specific lists for packages, e.g.:
ggplot2
R-sig-mixed-models
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Asking a question Getting an answer
Search the web: others must have had this problem too
If you raise a question:
be polite
be concise
short background
replicatable example
debrief your efforts sofar
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Installing R and RStudio
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Download R
Instructions via http://www.r-project.org
Choose a CRAN mirror
http://cran.r-project.org/mirrors.html
close, but active too!
Romania hasn’t gone (yet!)
Click on ‘Download R for Windows’
Follow usual installation procedure
Double click on R
You should now have a working session!
Close the session, do not save workspace image
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
RStudio
RStudio is found on http://www.rstudio.com
Download the version for your OS (e.g. windows)
http://www.rstudio.com/products/rstudio/download/
Install by double clicking on the downloaded file
Start RStudio by double clicking on the icon
You do not need to start R, before starting RStudio
Richard L. Zijdeman Introduction into R

Mais conteúdo relacionado

Mais procurados

Is Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results RevealedIs Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Revolution Analytics
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)
Ankit Rathi
 
GraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communitiesGraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communities
Paco Nathan
 

Mais procurados (20)

R tutorial
R tutorialR tutorial
R tutorial
 
Is Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results RevealedIs Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
 
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
 
The History and Use of R
The History and Use of RThe History and Use of R
The History and Use of R
 
Introduction to the R Statistical Computing Environment
Introduction to the R Statistical Computing EnvironmentIntroduction to the R Statistical Computing Environment
Introduction to the R Statistical Computing Environment
 
1.3 introduction to R language, importing dataset in r, data exploration in r
1.3 introduction to R language, importing dataset in r, data exploration in r1.3 introduction to R language, importing dataset in r, data exploration in r
1.3 introduction to R language, importing dataset in r, data exploration in r
 
Why R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics PlatformWhy R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics Platform
 
An Introduction to Spark with Scala
An Introduction to Spark with ScalaAn Introduction to Spark with Scala
An Introduction to Spark with Scala
 
R for data analytics
R for data analyticsR for data analytics
R for data analytics
 
R program
R programR program
R program
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)
 
R programming Language , Rahul Singh
R programming Language , Rahul SinghR programming Language , Rahul Singh
R programming Language , Rahul Singh
 
Big Data Analytics with R
Big Data Analytics with RBig Data Analytics with R
Big Data Analytics with R
 
LD4KD 2015 - Demos and tools
LD4KD 2015 - Demos and toolsLD4KD 2015 - Demos and tools
LD4KD 2015 - Demos and tools
 
GraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communitiesGraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communities
 
Big data analytics using R
Big data analytics using RBig data analytics using R
Big data analytics using R
 
Introducing The R Software
Introducing The R Software  Introducing The R Software
Introducing The R Software
 
Hybrid acquisition of temporal scopes for rdf data
Hybrid acquisition of temporal scopes for rdf dataHybrid acquisition of temporal scopes for rdf data
Hybrid acquisition of temporal scopes for rdf data
 
Democratizing Big Semantic Data management
Democratizing Big Semantic Data managementDemocratizing Big Semantic Data management
Democratizing Big Semantic Data management
 
Revolution R Enterprise - Portland R User Group, November 2013
Revolution R Enterprise - Portland R User Group, November 2013Revolution R Enterprise - Portland R User Group, November 2013
Revolution R Enterprise - Portland R User Group, November 2013
 

Destaque

Destaque (20)

Historical occupational classification and occupational stratification schemes
Historical occupational classification and occupational stratification schemesHistorical occupational classification and occupational stratification schemes
Historical occupational classification and occupational stratification schemes
 
Mulai melangkah dengan Node.js
Mulai melangkah dengan Node.jsMulai melangkah dengan Node.js
Mulai melangkah dengan Node.js
 
Lokakarya penerjemah blank on 9.0
Lokakarya penerjemah blank on 9.0Lokakarya penerjemah blank on 9.0
Lokakarya penerjemah blank on 9.0
 
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINTTUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
 
Domain name system dinamis dengan protokol dinamid versi 1.02
Domain name system dinamis dengan protokol dinamid versi 1.02Domain name system dinamis dengan protokol dinamid versi 1.02
Domain name system dinamis dengan protokol dinamid versi 1.02
 
PortableApps on Fedora 10 LiveUSB
PortableApps on Fedora 10 LiveUSBPortableApps on Fedora 10 LiveUSB
PortableApps on Fedora 10 LiveUSB
 
Debian Tutorial
Debian TutorialDebian Tutorial
Debian Tutorial
 
Pemaketan blankon-ii
Pemaketan blankon-iiPemaketan blankon-ii
Pemaketan blankon-ii
 
Database optimization
Database optimizationDatabase optimization
Database optimization
 
En game hacking
En game hackingEn game hacking
En game hacking
 
Pemaketan blankon-i
Pemaketan blankon-iPemaketan blankon-i
Pemaketan blankon-i
 
Database optimization 2
Database optimization 2Database optimization 2
Database optimization 2
 
Macam2 sertifikasi linux
Macam2 sertifikasi linuxMacam2 sertifikasi linux
Macam2 sertifikasi linux
 
Laporan praktikum jarkom
Laporan praktikum jarkomLaporan praktikum jarkom
Laporan praktikum jarkom
 
Skalabilitas Aplikasi Web
Skalabilitas Aplikasi WebSkalabilitas Aplikasi Web
Skalabilitas Aplikasi Web
 
Panduan praktikum jaringan & packet tracer
Panduan praktikum jaringan & packet tracerPanduan praktikum jaringan & packet tracer
Panduan praktikum jaringan & packet tracer
 
OpenOffice.Org Impress Tutorial
OpenOffice.Org Impress TutorialOpenOffice.Org Impress Tutorial
OpenOffice.Org Impress Tutorial
 
Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11
 
Ft tx presentation to telkom 25092013
Ft tx presentation to telkom 25092013Ft tx presentation to telkom 25092013
Ft tx presentation to telkom 25092013
 
FOSS and Linux
FOSS and LinuxFOSS and Linux
FOSS and Linux
 

Semelhante a Introduction into R for historians (part 1: introduction)

Revolution Analytics
Revolution AnalyticsRevolution Analytics
Revolution Analytics
templedf
 
High Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and HadoopHigh Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and Hadoop
Revolution Analytics
 

Semelhante a Introduction into R for historians (part 1: introduction) (20)

R programming for psychometrics
R programming for psychometricsR programming for psychometrics
R programming for psychometrics
 
R and Data Science
R and Data ScienceR and Data Science
R and Data Science
 
R crash course
R crash courseR crash course
R crash course
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
How to get started with R programming
How to get started with R programmingHow to get started with R programming
How to get started with R programming
 
Unit1_Introduction to R.pdf
Unit1_Introduction to R.pdfUnit1_Introduction to R.pdf
Unit1_Introduction to R.pdf
 
Lecture_R.ppt
Lecture_R.pptLecture_R.ppt
Lecture_R.ppt
 
An introduction to R is a document useful
An introduction to R is a document usefulAn introduction to R is a document useful
An introduction to R is a document useful
 
The Statistical Significance of &quot;R&quot;
The Statistical Significance of &quot;R&quot;The Statistical Significance of &quot;R&quot;
The Statistical Significance of &quot;R&quot;
 
R programming
R programmingR programming
R programming
 
Best corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbaiBest corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbai
 
Revolution Analytics
Revolution AnalyticsRevolution Analytics
Revolution Analytics
 
Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!
 
R and Rcmdr Statistical Software
R and Rcmdr Statistical SoftwareR and Rcmdr Statistical Software
R and Rcmdr Statistical Software
 
Types Working for You, Not Against You
Types Working for You, Not Against YouTypes Working for You, Not Against You
Types Working for You, Not Against You
 
R and Python, A Code Demo
R and Python, A Code DemoR and Python, A Code Demo
R and Python, A Code Demo
 
High Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and HadoopHigh Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and Hadoop
 
PPT - Introduction to R.pdf
PPT - Introduction to R.pdfPPT - Introduction to R.pdf
PPT - Introduction to R.pdf
 
DATA MINING USING R (1).pptx
DATA MINING USING R (1).pptxDATA MINING USING R (1).pptx
DATA MINING USING R (1).pptx
 
Data science : R Basics Harvard University
Data science : R Basics Harvard UniversityData science : R Basics Harvard University
Data science : R Basics Harvard University
 

Mais de Richard Zijdeman

Mais de Richard Zijdeman (14)

Linked Data: Een extra ontstluitingslaag op archieven
Linked Data: Een extra ontstluitingslaag op archieven Linked Data: Een extra ontstluitingslaag op archieven
Linked Data: Een extra ontstluitingslaag op archieven
 
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
 
grlc. store, share and run sparql queries
grlc. store, share and run sparql queriesgrlc. store, share and run sparql queries
grlc. store, share and run sparql queries
 
Rijpma's Catasto meets SPARQL dhb2017_workshop
Rijpma's Catasto meets SPARQL dhb2017_workshopRijpma's Catasto meets SPARQL dhb2017_workshop
Rijpma's Catasto meets SPARQL dhb2017_workshop
 
Data legend dh_benelux_2017.key
Data legend dh_benelux_2017.keyData legend dh_benelux_2017.key
Data legend dh_benelux_2017.key
 
Toogdag 2017
Toogdag 2017Toogdag 2017
Toogdag 2017
 
Labour force participation of married women, US 1860-2010
Labour force participation of married women, US 1860-2010Labour force participation of married women, US 1860-2010
Labour force participation of married women, US 1860-2010
 
Advancing the comparability of occupational data through Linked Open Data
Advancing the comparability of occupational data through Linked Open DataAdvancing the comparability of occupational data through Linked Open Data
Advancing the comparability of occupational data through Linked Open Data
 
work in a globalized world
work in a globalized worldwork in a globalized world
work in a globalized world
 
The Structured Data Hub in 2019
The Structured Data Hub in 2019The Structured Data Hub in 2019
The Structured Data Hub in 2019
 
Examples of digital history at the IISH
Examples of digital history at the IISHExamples of digital history at the IISH
Examples of digital history at the IISH
 
Historical occupational classification and stratification schemes (lecture)
Historical occupational classification and stratification schemes (lecture)Historical occupational classification and stratification schemes (lecture)
Historical occupational classification and stratification schemes (lecture)
 
Using HISCO and HISCAM to code and analyze occupations
Using HISCO and HISCAM to code and analyze occupationsUsing HISCO and HISCAM to code and analyze occupations
Using HISCO and HISCAM to code and analyze occupations
 
Csdh sbg clariah_intr01
Csdh sbg clariah_intr01Csdh sbg clariah_intr01
Csdh sbg clariah_intr01
 

Último

CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
JoseMangaJr1
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 

Último (20)

CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 

Introduction into R for historians (part 1: introduction)

  • 1. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Introduction into R Richard L. Zijdeman 28 May 2015 Richard L. Zijdeman Introduction into R
  • 2. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio 1 Quantitave research methods 2 Statistical Software 3 Introducing R vocabulary 4 Getting help 5 Installing R and RStudio Richard L. Zijdeman Introduction into R
  • 3. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Quantitave research methods Richard L. Zijdeman Introduction into R
  • 4. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Why To answer descriptive and explanatory questions on populations Richard L. Zijdeman Introduction into R
  • 5. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Workflow: PTE problem (research question) theory (hypothesis) empirical test . . . with loops between T-E and P-T-E Richard L. Zijdeman Introduction into R
  • 6. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Research Questions descriptive (to what extent. . . ) comparative (comparing two entities) trend (comparison over time) explanatory (focus on mechanism at hand) Richard L. Zijdeman Introduction into R
  • 7. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Theory deductive reasoning explanans general mechanism condition explanandum (hypothesis) Richard L. Zijdeman Introduction into R
  • 8. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Empirical test sample vs. population random vs. stratified samples testing technique, e.g.: T-test, correlation, regression Software required for faster analysis Richard L. Zijdeman Introduction into R
  • 9. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Statistical Software Richard L. Zijdeman Introduction into R
  • 10. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio The dangers of analysing with spreadsheets (e.g. MS Excel) tempting to input and clean data in the same sheet difficult to track cleaning rules defaults mess up your data (e.g. 01200 -> 1200) Richard L. Zijdeman Introduction into R
  • 11. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Why use syntax (scripting) Efficiency (really) Quality (error checking) Replicatability Communication Richard L. Zijdeman Introduction into R
  • 12. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio R R is open source, which is good and bad: anybody can contribute (check, improve, create code) free of charge but: R depends on collective action cannot ‘demand’ support sprawl of packages Richard L. Zijdeman Introduction into R
  • 13. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio RStudio browser for R provides easy access to: scripts data plots manual Richard L. Zijdeman Introduction into R
  • 14. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Introducing R vocabulary Richard L. Zijdeman Introduction into R
  • 15. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio R script * series of commands to manipulate data * always save your script, NEVER change your data original data + script = reproducable research Richard L. Zijdeman Introduction into R
  • 16. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio R Session * contains scripts, data, functions * can be saved 'workspace image' * prefer not to: + sessions are usually cluttered + only useful if running script takes time Richard L. Zijdeman Introduction into R
  • 17. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Assignment * 'attach' values to an object (e.g. a variable) x <- 5 y <- 4 z <- x*y print(z) ## [1] 20 Richard L. Zijdeman Introduction into R
  • 18. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Assignment II Try and imagine the potential of assignment x <- c(4, 3, 2, 1, 0, 27, 34, 35) # 'c' for concatenate values y <- -1 z <- x*y print(z) ## [1] -4 -3 -2 -1 0 -27 -34 -35 Richard L. Zijdeman Introduction into R
  • 19. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Data.frame basically a table contains columns (variables) contains rows (cases) “flat table” in Kees’ terminology my.df <- data.frame(x,z) str(my.df) # show STRucture ## 'data.frame': 8 obs. of 2 variables: ## $ x: num 4 3 2 1 0 27 34 35 ## $ z: num -4 -3 -2 -1 0 -27 -34 -35 Richard L. Zijdeman Introduction into R
  • 20. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Packages and libraries base R (core product) additional packages CRAN repository spread through ‘mirrors’ choose a local, but active mirror Github packages not on CRAN development versions of CRAN libraries Richard L. Zijdeman Introduction into R
  • 21. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Getting help Richard L. Zijdeman Introduction into R
  • 22. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Build-in help: “?” ?[function] / ?[package] e.g. “?plot” or “?graphics” check the index for user guides and vignettes Richard L. Zijdeman Introduction into R
  • 23. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Cran website Manuals R FAQ R Journal Richard L. Zijdeman Introduction into R
  • 24. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Online communities Stackoverflow Instance of Stackexchange Reputation based Q&A Specific lists for packages, e.g.: ggplot2 R-sig-mixed-models Richard L. Zijdeman Introduction into R
  • 25. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Asking a question Getting an answer Search the web: others must have had this problem too If you raise a question: be polite be concise short background replicatable example debrief your efforts sofar Richard L. Zijdeman Introduction into R
  • 26. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Installing R and RStudio Richard L. Zijdeman Introduction into R
  • 27. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Download R Instructions via http://www.r-project.org Choose a CRAN mirror http://cran.r-project.org/mirrors.html close, but active too! Romania hasn’t gone (yet!) Click on ‘Download R for Windows’ Follow usual installation procedure Double click on R You should now have a working session! Close the session, do not save workspace image Richard L. Zijdeman Introduction into R
  • 28. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio RStudio RStudio is found on http://www.rstudio.com Download the version for your OS (e.g. windows) http://www.rstudio.com/products/rstudio/download/ Install by double clicking on the downloaded file Start RStudio by double clicking on the icon You do not need to start R, before starting RStudio Richard L. Zijdeman Introduction into R