SlideShare una empresa de Scribd logo
1 de 52
Descargar para leer sin conexión
Introduction to
      2012-09-21 @HSPH
     Kazuki Yoshida, M.D.
       MPH-CLE student
Menu
n   What is R?
n   How does it compare to others?
n   What are the advantages/disadvantages of R?
n   Let’s install R.
n   Editors and GUIs: How to make R more friendly
What is                      ?
          http://www.r-project.org
is
a language and
environment for
statistical computing
and graphics
      http://www.r-project.org/about.html
Menu
n   What is R?
n   How does it compare to others?
n   What are the advantages/disadvantages of R?
n   Let’s install R.
n   Editors and GUIs: How to make R more friendly
Many statistical
  packages
Software

                 SAS           Stata         JMP            R          SPSS



                $65/yr
   Cost      (+Parallels&     $179       Free for you     None        $55/yr
              Windows)



                            Menus or                    Commands Menus (or
Mode of use Commands                       Menus
                            commands                    (or menus) commands)



                Very        Moderately    Seasonal       Rel. rare. Rare. More
Prevalence
              prevalent     prevalent     cases in       Incidence prevalent in
 at HSPH
             esp. in Epi    esp in Bio     June         increasing?    wild
Other packages
n   CDC Epi Info: Field epidemiology
n   TreeAgePro: Decision science
n   SUDAAN: Survey data
n   WinBUGS: Markov chain Monte Carlo
n   Python: General-purpose programming language
n   matlab, mathematica: Mathematics
Courses taught in R
n   BIO 232 (Fall) Stat Methods I
n   BIO 509 (Fall) Intro Stat Comp Environments
n   BIO 503 (Winter) Program and Stat Model in R
                          http://isites.harvard.edu/icb/icb.do?keyword=k84377


n   ID 271 (Spring) Adv Regression for Env Epi
n   HMS BMI713.0 (Fall) Comp Stat for Biomed Sci
              http://informaticstraining.hms.harvard.edu/content/lectures-and-problem-sets
Menu
n   What is R?
n   How does it compare to others?
n   What are the advantages/disadvantages of R?
n   Let’s install R.
n   Editors and GUIs: How to make R more friendly
Advantages
is


    Free as in
    free beer
http://en.wikipedia.org/wiki/Free_Beer
is
Free as in
 freedom

    http://www.thefreedomtrail.org
People care about free




    http://chereemoore.blogspot.com/2011/06/live-free-or-die.html
is
                                   Developed by
     Robert Gentleman                     Ross Ihaka


                                                                      & user
                                                                    community
Core Developer Team:
Douglas Bates, John Chambers, Peter Dalgaard, Seth Falcon, Robert Gentleman (Left), Kurt
Hornik, Stefano Iacus, Ross Ihaka (Right), Friedrich Leisch, Uwe Ligges, Thomas Lumley, Martin
Maechler, Duncan Murdoch, Paul Murrell, Martyn Plummer, Brian Ripley, Deepayan Sarkar,
Duncan Temple Lang, Luke Tierney, Simon Urbanek
                              http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html?pagewanted=all
4000+
contributed
 packages
          Fast
      development
          http://r4stats.com/articles/popularity/
http://had.co.nz/ggplot2/




  Flexible Graphics


http://www.stat.auckland.ac.nz/~paul/RG2e/   http://cran.r-project.org/web/packages/wordcloud/index.html
http://rpubs.com/kaz_yos/1285
pROC                                           survival/rms




http://www.r-bloggers.com/u-s-unemployment-data-
            animated-choropleth-maps/
Watch
 additional
on-site demo
http://www.stat.auckland.ac.nz/~paul/
        RG2e/chapter16.html
                                        http://cran.r-project.org/web/packages/animation/index.html
Disadvantages
Learning
  a new
   L




language
 is hard
R Commander:                                                   EZR:
  http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/   http://www.jichi.ac.jp/saitama-sct/SaitamaHP.files/statmedEN.html




                             Lack of
                            standard
                              GUI
     Deducer:
http://www.deducer.org/
NHANES3 dataset




                  Lack of
                  variable
                  labeling
                       Use memisc for partial fix
Not great for
     big data (yet)

                                     Use ff, bigmemory, etc

http://newscenter.berkeley.edu/2012/03/29/nsf-big-data-grant/
http://techreport.com/articles.x/15818



       Single core
          use

               Turn on parallelization explicitly
Menu
n   What is R?
n   How does it compare to others?
n   What are the advantages/disadvantages of R?
n   Let’s install R.
n   Editors and GUIs: How to make R more friendly
Let’s get
started!!
Download!!
  http://www.r-project.org
     http://rstudio.org
http://www.r-project.org
GUI toolkit
http://rstudio.org
OR
Install!!
Follow on-site
 instruction
Menu
n   What is R?
n   How does it compare to others?
n   What are the advantages/disadvantages of R?
n   Let’s install R.
n   Editors and GUIs: How to make R more friendly
Comparison of
environments
Standalone R.app




Fully functional             Poor editor
RStudio editor




               http://rstudio.org




Fully functional                    Not GUI
ESS on emacs editor




             http://ess.r-project.org




Fully functional                 emacs is hard
Deducer GUI




           http://www.deducer.org




Easy dialogues          Very limited functionality
R Commander GUI




 http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/




More functional             Less sophisticated
EZR modification of R Commander GUI




   http://www.jichi.ac.jp/saitama-sct/SaitamaHP.files/
                    statmedEN.html




Focus on medical research     Still in early development
For Your
Information
websites
n   Download: http://www.r-project.org
n   Look for packages: http://cran.r-project.org/web/
     views/
n   Look up abbreviations.: http://www.r-
     bloggers.com/abbreviations-of-r-commands-
     explained-250-r-abbreviations/
n   Get up-to-date info: http://www.r-bloggers.com
editors


n   RStudio: http://www.rstudio.org
n   ESS for emacs: http://ess.r-project.org
GUI
n   R Commander: http://socserv.mcmaster.ca/jfox/
     Misc/Rcmdr/
n   EZR: http://www.jichi.ac.jp/saitama-sct/
     SaitamaHP.files/statmedEN.html
n   Deducer: http://www.deducer.org/
n   Rattle: http://rattle.togaware.com

Más contenido relacionado

La actualidad más candente

Descriptive Statistics with R
Descriptive Statistics with RDescriptive Statistics with R
Descriptive Statistics with R
Kazuki Yoshida
 

La actualidad más candente (20)

Introduction to Rstudio
Introduction to RstudioIntroduction to Rstudio
Introduction to Rstudio
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programming
 
Step By Step Guide to Learn R
Step By Step Guide to Learn RStep By Step Guide to Learn R
Step By Step Guide to Learn R
 
R studio
R studio R studio
R studio
 
Unit 1 - R Programming (Part 2).pptx
Unit 1 - R Programming (Part 2).pptxUnit 1 - R Programming (Part 2).pptx
Unit 1 - R Programming (Part 2).pptx
 
Descriptive Statistics with R
Descriptive Statistics with RDescriptive Statistics with R
Descriptive Statistics with R
 
Machine Learning with R
Machine Learning with RMachine Learning with R
Machine Learning with R
 
R programming presentation
R programming presentationR programming presentation
R programming presentation
 
R Programming: Introduction To R Packages
R Programming: Introduction To R PackagesR Programming: Introduction To R Packages
R Programming: Introduction To R Packages
 
R programming
R programmingR programming
R programming
 
Statistics for data science
Statistics for data science Statistics for data science
Statistics for data science
 
Getting Started with R
Getting Started with RGetting Started with R
Getting Started with R
 
Data Management in R
Data Management in RData Management in R
Data Management in R
 
Introduction to R programming
Introduction to R programmingIntroduction to R programming
Introduction to R programming
 
R programming language
R programming languageR programming language
R programming language
 
Linear Regression With R
Linear Regression With RLinear Regression With R
Linear Regression With R
 
Exploratory data analysis data visualization
Exploratory data analysis data visualizationExploratory data analysis data visualization
Exploratory data analysis data visualization
 
Exploratory data analysis with Python
Exploratory data analysis with PythonExploratory data analysis with Python
Exploratory data analysis with Python
 
R Language Introduction
R Language IntroductionR Language Introduction
R Language Introduction
 

Destacado

R Introduction
R IntroductionR Introduction
R Introduction
schamber
 
Introduction to Deducer
Introduction to DeducerIntroduction to Deducer
Introduction to Deducer
Kazuki Yoshida
 

Destacado (20)

R language tutorial
R language tutorialR language tutorial
R language tutorial
 
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 Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)
 
R learning by examples
R learning by examplesR learning by examples
R learning by examples
 
R programming language
R programming languageR programming language
R programming language
 
R programming Basic & Advanced
R programming Basic & AdvancedR programming Basic & Advanced
R programming Basic & Advanced
 
Iris data analysis example in R
Iris data analysis example in RIris data analysis example in R
Iris data analysis example in R
 
Applied spatial data introducing
Applied spatial data introducingApplied spatial data introducing
Applied spatial data introducing
 
R programming language: conceptual overview
R programming language: conceptual overviewR programming language: conceptual overview
R programming language: conceptual overview
 
Introtor
IntrotorIntrotor
Introtor
 
R Introduction
R IntroductionR Introduction
R Introduction
 
March meet up new delhi users- Two R GUIs Rattle and Deducer
March meet up new delhi users- Two R GUIs Rattle and DeducerMarch meet up new delhi users- Two R GUIs Rattle and Deducer
March meet up new delhi users- Two R GUIs Rattle and Deducer
 
Introduction to Deducer
Introduction to DeducerIntroduction to Deducer
Introduction to Deducer
 
Intro to RStudio
Intro to RStudioIntro to RStudio
Intro to RStudio
 
Data mining with Rattle For R
Data mining with Rattle For RData mining with Rattle For R
Data mining with Rattle For R
 
Installing R and R-Studio
Installing R and R-StudioInstalling R and R-Studio
Installing R and R-Studio
 
Data mining with R- regression models
Data mining with R- regression modelsData mining with R- regression models
Data mining with R- regression models
 
R and Rcmdr Statistical Software
R and Rcmdr Statistical SoftwareR and Rcmdr Statistical Software
R and Rcmdr Statistical Software
 
Introduction to R Graphics with ggplot2
Introduction to R Graphics with ggplot2Introduction to R Graphics with ggplot2
Introduction to R Graphics with ggplot2
 
R-Studio Vs. Rcmdr
R-Studio Vs. RcmdrR-Studio Vs. Rcmdr
R-Studio Vs. Rcmdr
 

Similar a Introduction to R

Openmeetings
OpenmeetingsOpenmeetings
Openmeetings
hs1250
 
Passing The Joel Test In The PHP World
Passing The Joel Test In The PHP WorldPassing The Joel Test In The PHP World
Passing The Joel Test In The PHP World
Lorna Mitchell
 

Similar a Introduction to R (20)

R studio practical file
R studio  practical file R studio  practical file
R studio practical file
 
Python Programming - I. Introduction
Python Programming - I. IntroductionPython Programming - I. Introduction
Python Programming - I. Introduction
 
DSM software tools
DSM software toolsDSM software tools
DSM software tools
 
Reproducible Research in R and R Studio
Reproducible Research in R and R StudioReproducible Research in R and R Studio
Reproducible Research in R and R Studio
 
"Open Source ERP Projects and Opportunities for the Romanian Market" by Thoma...
"Open Source ERP Projects and Opportunities for the Romanian Market" by Thoma..."Open Source ERP Projects and Opportunities for the Romanian Market" by Thoma...
"Open Source ERP Projects and Opportunities for the Romanian Market" by Thoma...
 
Modular development with redux
Modular development with reduxModular development with redux
Modular development with redux
 
Data Science - Part II - Working with R & R studio
Data Science - Part II -  Working with R & R studioData Science - Part II -  Working with R & R studio
Data Science - Part II - Working with R & R studio
 
abapin21days.pdf
abapin21days.pdfabapin21days.pdf
abapin21days.pdf
 
4. Digital Soil Mapping: Software and Tools
4. Digital Soil Mapping: Software and Tools4. Digital Soil Mapping: Software and Tools
4. Digital Soil Mapping: Software and Tools
 
Study of R Programming
Study of R ProgrammingStudy of R Programming
Study of R Programming
 
4. Digital Soil Mapping software tools
4. Digital Soil Mapping software tools4. Digital Soil Mapping software tools
4. Digital Soil Mapping software tools
 
Data analysis with R and Julia
Data analysis with R and JuliaData analysis with R and Julia
Data analysis with R and Julia
 
Openmeetings
OpenmeetingsOpenmeetings
Openmeetings
 
Passing The Joel Test In The PHP World
Passing The Joel Test In The PHP WorldPassing The Joel Test In The PHP World
Passing The Joel Test In The PHP World
 
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
 
Up your data game: How to use R to wrangle, analyze, and visualize data faste...
Up your data game: How to use R to wrangle, analyze, and visualize data faste...Up your data game: How to use R to wrangle, analyze, and visualize data faste...
Up your data game: How to use R to wrangle, analyze, and visualize data faste...
 
Simple Web Services with PHP
Simple Web Services with PHPSimple Web Services with PHP
Simple Web Services with PHP
 
Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali TirmiziFinancial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi
Financial Risk Mgt - Lec 4 by Dr. Syed Muhammad Ali Tirmizi
 
Code, ci, infrastructure - the gophers way
Code, ci, infrastructure - the gophers wayCode, ci, infrastructure - the gophers way
Code, ci, infrastructure - the gophers way
 
APIs and SDKs: Breaking Into and Succeeding in a Specialty Market
APIs and SDKs: Breaking Into and Succeeding in a Specialty MarketAPIs and SDKs: Breaking Into and Succeeding in a Specialty Market
APIs and SDKs: Breaking Into and Succeeding in a Specialty Market
 

Más de Kazuki Yoshida

20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in R20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in R
Kazuki Yoshida
 
20130215 Reading data into R
20130215 Reading data into R20130215 Reading data into R
20130215 Reading data into R
Kazuki Yoshida
 
Linear regression with R 2
Linear regression with R 2Linear regression with R 2
Linear regression with R 2
Kazuki Yoshida
 
Linear regression with R 1
Linear regression with R 1Linear regression with R 1
Linear regression with R 1
Kazuki Yoshida
 
(Very) Basic graphing with R
(Very) Basic graphing with R(Very) Basic graphing with R
(Very) Basic graphing with R
Kazuki Yoshida
 
Groupwise comparison of continuous data
Groupwise comparison of continuous dataGroupwise comparison of continuous data
Groupwise comparison of continuous data
Kazuki Yoshida
 
Categorical data with R
Categorical data with RCategorical data with R
Categorical data with R
Kazuki Yoshida
 
Install and Configure R and RStudio
Install and Configure R and RStudioInstall and Configure R and RStudio
Install and Configure R and RStudio
Kazuki Yoshida
 

Más de Kazuki Yoshida (20)

Graphical explanation of causal mediation analysis
Graphical explanation of causal mediation analysisGraphical explanation of causal mediation analysis
Graphical explanation of causal mediation analysis
 
Pharmacoepidemiology Lecture: Designing Observational CER to Emulate an RCT
Pharmacoepidemiology Lecture: Designing Observational CER to Emulate an RCTPharmacoepidemiology Lecture: Designing Observational CER to Emulate an RCT
Pharmacoepidemiology Lecture: Designing Observational CER to Emulate an RCT
 
What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?
 
Propensity Score Methods for Comparative Effectiveness Research with Multiple...
Propensity Score Methods for Comparative Effectiveness Research with Multiple...Propensity Score Methods for Comparative Effectiveness Research with Multiple...
Propensity Score Methods for Comparative Effectiveness Research with Multiple...
 
Emacs Key Bindings
Emacs Key BindingsEmacs Key Bindings
Emacs Key Bindings
 
Visual Explanation of Ridge Regression and LASSO
Visual Explanation of Ridge Regression and LASSOVisual Explanation of Ridge Regression and LASSO
Visual Explanation of Ridge Regression and LASSO
 
ENAR 2018 Matching Weights to Simultaneously Compare Three Treatment Groups: ...
ENAR 2018 Matching Weights to Simultaneously Compare Three Treatment Groups: ...ENAR 2018 Matching Weights to Simultaneously Compare Three Treatment Groups: ...
ENAR 2018 Matching Weights to Simultaneously Compare Three Treatment Groups: ...
 
Search and Replacement Techniques in Emacs: avy, swiper, multiple-cursor, ag,...
Search and Replacement Techniques in Emacs: avy, swiper, multiple-cursor, ag,...Search and Replacement Techniques in Emacs: avy, swiper, multiple-cursor, ag,...
Search and Replacement Techniques in Emacs: avy, swiper, multiple-cursor, ag,...
 
Comparison of Privacy-Protecting Analytic and Data-sharing Methods: a Simulat...
Comparison of Privacy-Protecting Analytic and Data-sharing Methods: a Simulat...Comparison of Privacy-Protecting Analytic and Data-sharing Methods: a Simulat...
Comparison of Privacy-Protecting Analytic and Data-sharing Methods: a Simulat...
 
Spacemacs: emacs user's first impression
Spacemacs: emacs user's first impressionSpacemacs: emacs user's first impression
Spacemacs: emacs user's first impression
 
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
Matching Weights to Simultaneously Compare Three Treatment Groups: a Simulati...
 
Multiple Imputation: Joint and Conditional Modeling of Missing Data
Multiple Imputation: Joint and Conditional Modeling of Missing DataMultiple Imputation: Joint and Conditional Modeling of Missing Data
Multiple Imputation: Joint and Conditional Modeling of Missing Data
 
20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in R20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in R
 
20130215 Reading data into R
20130215 Reading data into R20130215 Reading data into R
20130215 Reading data into R
 
Linear regression with R 2
Linear regression with R 2Linear regression with R 2
Linear regression with R 2
 
Linear regression with R 1
Linear regression with R 1Linear regression with R 1
Linear regression with R 1
 
(Very) Basic graphing with R
(Very) Basic graphing with R(Very) Basic graphing with R
(Very) Basic graphing with R
 
Groupwise comparison of continuous data
Groupwise comparison of continuous dataGroupwise comparison of continuous data
Groupwise comparison of continuous data
 
Categorical data with R
Categorical data with RCategorical data with R
Categorical data with R
 
Install and Configure R and RStudio
Install and Configure R and RStudioInstall and Configure R and RStudio
Install and Configure R and RStudio
 

Último

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Introduction to R

  • 1. Introduction to 2012-09-21 @HSPH Kazuki Yoshida, M.D. MPH-CLE student
  • 2. Menu n What is R? n How does it compare to others? n What are the advantages/disadvantages of R? n Let’s install R. n Editors and GUIs: How to make R more friendly
  • 3. What is ? http://www.r-project.org
  • 4. is a language and environment for statistical computing and graphics http://www.r-project.org/about.html
  • 5. Menu n What is R? n How does it compare to others? n What are the advantages/disadvantages of R? n Let’s install R. n Editors and GUIs: How to make R more friendly
  • 6. Many statistical packages
  • 7. Software SAS Stata JMP R SPSS $65/yr Cost (+Parallels& $179 Free for you None $55/yr Windows) Menus or Commands Menus (or Mode of use Commands Menus commands (or menus) commands) Very Moderately Seasonal Rel. rare. Rare. More Prevalence prevalent prevalent cases in Incidence prevalent in at HSPH esp. in Epi esp in Bio June increasing? wild
  • 8. Other packages n CDC Epi Info: Field epidemiology n TreeAgePro: Decision science n SUDAAN: Survey data n WinBUGS: Markov chain Monte Carlo n Python: General-purpose programming language n matlab, mathematica: Mathematics
  • 9. Courses taught in R n BIO 232 (Fall) Stat Methods I n BIO 509 (Fall) Intro Stat Comp Environments n BIO 503 (Winter) Program and Stat Model in R http://isites.harvard.edu/icb/icb.do?keyword=k84377 n ID 271 (Spring) Adv Regression for Env Epi n HMS BMI713.0 (Fall) Comp Stat for Biomed Sci http://informaticstraining.hms.harvard.edu/content/lectures-and-problem-sets
  • 10. Menu n What is R? n How does it compare to others? n What are the advantages/disadvantages of R? n Let’s install R. n Editors and GUIs: How to make R more friendly
  • 12. is Free as in free beer http://en.wikipedia.org/wiki/Free_Beer
  • 13. is Free as in freedom http://www.thefreedomtrail.org
  • 14. People care about free http://chereemoore.blogspot.com/2011/06/live-free-or-die.html
  • 15. is Developed by Robert Gentleman Ross Ihaka & user community Core Developer Team: Douglas Bates, John Chambers, Peter Dalgaard, Seth Falcon, Robert Gentleman (Left), Kurt Hornik, Stefano Iacus, Ross Ihaka (Right), Friedrich Leisch, Uwe Ligges, Thomas Lumley, Martin Maechler, Duncan Murdoch, Paul Murrell, Martyn Plummer, Brian Ripley, Deepayan Sarkar, Duncan Temple Lang, Luke Tierney, Simon Urbanek http://www.nytimes.com/2009/01/07/technology/business-computing/07program.html?pagewanted=all
  • 16. 4000+ contributed packages Fast development http://r4stats.com/articles/popularity/
  • 17. http://had.co.nz/ggplot2/ Flexible Graphics http://www.stat.auckland.ac.nz/~paul/RG2e/ http://cran.r-project.org/web/packages/wordcloud/index.html
  • 19. pROC survival/rms http://www.r-bloggers.com/u-s-unemployment-data- animated-choropleth-maps/
  • 21. http://www.stat.auckland.ac.nz/~paul/ RG2e/chapter16.html http://cran.r-project.org/web/packages/animation/index.html
  • 23. Learning a new L language is hard
  • 24. R Commander: EZR: http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/ http://www.jichi.ac.jp/saitama-sct/SaitamaHP.files/statmedEN.html Lack of standard GUI Deducer: http://www.deducer.org/
  • 25. NHANES3 dataset Lack of variable labeling Use memisc for partial fix
  • 26. Not great for big data (yet) Use ff, bigmemory, etc http://newscenter.berkeley.edu/2012/03/29/nsf-big-data-grant/
  • 27. http://techreport.com/articles.x/15818 Single core use Turn on parallelization explicitly
  • 28. Menu n What is R? n How does it compare to others? n What are the advantages/disadvantages of R? n Let’s install R. n Editors and GUIs: How to make R more friendly
  • 32.
  • 33.
  • 34.
  • 37. OR
  • 40. Menu n What is R? n How does it compare to others? n What are the advantages/disadvantages of R? n Let’s install R. n Editors and GUIs: How to make R more friendly
  • 43. RStudio editor http://rstudio.org Fully functional Not GUI
  • 44. ESS on emacs editor http://ess.r-project.org Fully functional emacs is hard
  • 45. Deducer GUI http://www.deducer.org Easy dialogues Very limited functionality
  • 46. R Commander GUI http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/ More functional Less sophisticated
  • 47. EZR modification of R Commander GUI http://www.jichi.ac.jp/saitama-sct/SaitamaHP.files/ statmedEN.html Focus on medical research Still in early development
  • 48.
  • 50. websites n Download: http://www.r-project.org n Look for packages: http://cran.r-project.org/web/ views/ n Look up abbreviations.: http://www.r- bloggers.com/abbreviations-of-r-commands- explained-250-r-abbreviations/ n Get up-to-date info: http://www.r-bloggers.com
  • 51. editors n RStudio: http://www.rstudio.org n ESS for emacs: http://ess.r-project.org
  • 52. GUI n R Commander: http://socserv.mcmaster.ca/jfox/ Misc/Rcmdr/ n EZR: http://www.jichi.ac.jp/saitama-sct/ SaitamaHP.files/statmedEN.html n Deducer: http://www.deducer.org/ n Rattle: http://rattle.togaware.com