SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Interfacing R with Other Software
Arindam Basu MBBS MPH PhD
School of Health Sciences,
University of Canterbury
arin.basu@gmail.com
This is R in RStudio
This is Stata
They Do Not Easily Speak …
Questions …
• Why Not?
• Is there a Need to Let them Speak with Each
Other?
• Can I work entirely in R while keeping my data
in Stata/Spss?
• Can I work entirely in Stata while coding in R?
Why do I need to Integrate?
• I like R; my colleague likes X
• Combine the flexibility and features of both
software …
• Others?
• Demonstrate R
Calling Stata Data into R
• Use “foreign” package
Calling R into SPSS
• Install R plug-in from
– http://www.ibm.com/developerworks/spssdevcen
tral
• You can use SPSS GUI following installation, or
use SPSS syntax to get your work done
SPSS Syntax to Call R in SPSS
Running R from Within Stata
• Use the “File” command to create the file to
write R code
• Invoke a shell using “shell” command within
Stata
• In Mac, OK to write “R”
• In Windows, Use the /Path/to/R.exe
Talking Points
• It is relatively easy to use R flexibly with other
software such as Stata and SPSS
• Similar routines exist for SAS, JMP, and Statistica
• The Package “Foreign” is very useful, but for large
data sets, consider “memisc” package
• With Other software, in most cases with R
installed, invoking shell is effective
• For More information, see
http://r4stats.com/articles/calling-r/

Weitere ähnliche Inhalte

Andere mochten auch

Idea Lsept07
Idea Lsept07Idea Lsept07
Idea Lsept07griggans
 
Il metacrawler di SBBL
Il metacrawler di SBBLIl metacrawler di SBBL
Il metacrawler di SBBLbibliobioing
 
Stripper masculino
Stripper masculinoStripper masculino
Stripper masculinoascen
 
World Maths Day
World Maths DayWorld Maths Day
World Maths DayOllie Bray
 
MGS Number Day Posters
MGS Number Day PostersMGS Number Day Posters
MGS Number Day PostersOllie Bray
 
Netvibes juhend algajale
Netvibes juhend algajaleNetvibes juhend algajale
Netvibes juhend algajaleKai Pata
 
A learning shop for thurrock
A learning shop for thurrockA learning shop for thurrock
A learning shop for thurrock07733thurrock
 
cuerpos pintados
cuerpos pintadoscuerpos pintados
cuerpos pintadoscucoalmeria
 
Yorkshire Dales Fieldtrip March 07
Yorkshire Dales Fieldtrip March 07Yorkshire Dales Fieldtrip March 07
Yorkshire Dales Fieldtrip March 07ValVannet
 
Engage kick off_sept2012
Engage kick off_sept2012Engage kick off_sept2012
Engage kick off_sept2012Marc Duchesne
 
Unit 2 - Enlightenment
Unit 2 - EnlightenmentUnit 2 - Enlightenment
Unit 2 - Enlightenmentoutsidethecave
 
Hunt'n and Fish'n Club
Hunt'n and Fish'n ClubHunt'n and Fish'n Club
Hunt'n and Fish'n ClubCarol Case
 
Informatology: using web 2.0 in face-to-face sessions
Informatology: using web 2.0 in face-to-face sessionsInformatology: using web 2.0 in face-to-face sessions
Informatology: using web 2.0 in face-to-face sessionsscottw
 
Interaktiivne mälu taaskasutamine muuseumis
Interaktiivne mälu taaskasutamine muuseumisInteraktiivne mälu taaskasutamine muuseumis
Interaktiivne mälu taaskasutamine muuseumisKai Pata
 

Andere mochten auch (20)

Idea Lsept07
Idea Lsept07Idea Lsept07
Idea Lsept07
 
Comunicacion
ComunicacionComunicacion
Comunicacion
 
test
testtest
test
 
Il metacrawler di SBBL
Il metacrawler di SBBLIl metacrawler di SBBL
Il metacrawler di SBBL
 
Stripper masculino
Stripper masculinoStripper masculino
Stripper masculino
 
World Maths Day
World Maths DayWorld Maths Day
World Maths Day
 
Michaelf
MichaelfMichaelf
Michaelf
 
SimSchool@UC
SimSchool@UCSimSchool@UC
SimSchool@UC
 
MGS Number Day Posters
MGS Number Day PostersMGS Number Day Posters
MGS Number Day Posters
 
Kumamoto
KumamotoKumamoto
Kumamoto
 
Netvibes juhend algajale
Netvibes juhend algajaleNetvibes juhend algajale
Netvibes juhend algajale
 
Pace presentation
Pace presentationPace presentation
Pace presentation
 
A learning shop for thurrock
A learning shop for thurrockA learning shop for thurrock
A learning shop for thurrock
 
cuerpos pintados
cuerpos pintadoscuerpos pintados
cuerpos pintados
 
Yorkshire Dales Fieldtrip March 07
Yorkshire Dales Fieldtrip March 07Yorkshire Dales Fieldtrip March 07
Yorkshire Dales Fieldtrip March 07
 
Engage kick off_sept2012
Engage kick off_sept2012Engage kick off_sept2012
Engage kick off_sept2012
 
Unit 2 - Enlightenment
Unit 2 - EnlightenmentUnit 2 - Enlightenment
Unit 2 - Enlightenment
 
Hunt'n and Fish'n Club
Hunt'n and Fish'n ClubHunt'n and Fish'n Club
Hunt'n and Fish'n Club
 
Informatology: using web 2.0 in face-to-face sessions
Informatology: using web 2.0 in face-to-face sessionsInformatology: using web 2.0 in face-to-face sessions
Informatology: using web 2.0 in face-to-face sessions
 
Interaktiivne mälu taaskasutamine muuseumis
Interaktiivne mälu taaskasutamine muuseumisInteraktiivne mälu taaskasutamine muuseumis
Interaktiivne mälu taaskasutamine muuseumis
 

Mehr von Dr Arindam Basu

Arsenic and bladder cancer variation in estimates
Arsenic and bladder cancer  variation in estimatesArsenic and bladder cancer  variation in estimates
Arsenic and bladder cancer variation in estimatesDr Arindam Basu
 
Development of polygenic risk scores for ambulatory care sensitive hospitalis...
Development of polygenic risk scores for ambulatory care sensitive hospitalis...Development of polygenic risk scores for ambulatory care sensitive hospitalis...
Development of polygenic risk scores for ambulatory care sensitive hospitalis...Dr Arindam Basu
 
Arsenic and bladder cancer variation in estimates
Arsenic and bladder cancer  variation in estimatesArsenic and bladder cancer  variation in estimates
Arsenic and bladder cancer variation in estimatesDr Arindam Basu
 
Arsenic and bladder cancer variation in estimates
Arsenic and bladder cancer  variation in estimatesArsenic and bladder cancer  variation in estimates
Arsenic and bladder cancer variation in estimatesDr Arindam Basu
 
Research Methods in Health Sciences
Research Methods in Health SciencesResearch Methods in Health Sciences
Research Methods in Health SciencesDr Arindam Basu
 
The Ibis Effect: The Migrant Indian Health Effect
The Ibis Effect: The Migrant Indian Health EffectThe Ibis Effect: The Migrant Indian Health Effect
The Ibis Effect: The Migrant Indian Health EffectDr Arindam Basu
 
A Lecture on Sample Size and Statistical Inference for Health Researchers
A Lecture on Sample Size and Statistical Inference for Health ResearchersA Lecture on Sample Size and Statistical Inference for Health Researchers
A Lecture on Sample Size and Statistical Inference for Health ResearchersDr Arindam Basu
 
Access to Health Care and Andersen Model
Access to Health Care and Andersen ModelAccess to Health Care and Andersen Model
Access to Health Care and Andersen ModelDr Arindam Basu
 
Understanding indian health culture
Understanding indian health cultureUnderstanding indian health culture
Understanding indian health cultureDr Arindam Basu
 
Priority Setting in Health Care
Priority Setting in Health CarePriority Setting in Health Care
Priority Setting in Health CareDr Arindam Basu
 
Social determinants-health
Social determinants-healthSocial determinants-health
Social determinants-healthDr Arindam Basu
 
Introduction to DALY and burden of disease
Introduction to DALY and burden of diseaseIntroduction to DALY and burden of disease
Introduction to DALY and burden of diseaseDr Arindam Basu
 
Using Visual Methods and Social Network Analysis to Explore Relationships in ...
Using Visual Methods and Social Network Analysis to Explore Relationships in ...Using Visual Methods and Social Network Analysis to Explore Relationships in ...
Using Visual Methods and Social Network Analysis to Explore Relationships in ...Dr Arindam Basu
 
Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)
Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)
Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)Dr Arindam Basu
 

Mehr von Dr Arindam Basu (20)

Arsenic and bladder cancer variation in estimates
Arsenic and bladder cancer  variation in estimatesArsenic and bladder cancer  variation in estimates
Arsenic and bladder cancer variation in estimates
 
Development of polygenic risk scores for ambulatory care sensitive hospitalis...
Development of polygenic risk scores for ambulatory care sensitive hospitalis...Development of polygenic risk scores for ambulatory care sensitive hospitalis...
Development of polygenic risk scores for ambulatory care sensitive hospitalis...
 
Auckland 2018
Auckland 2018Auckland 2018
Auckland 2018
 
Arsenic and bladder cancer variation in estimates
Arsenic and bladder cancer  variation in estimatesArsenic and bladder cancer  variation in estimates
Arsenic and bladder cancer variation in estimates
 
Arsenic and bladder cancer variation in estimates
Arsenic and bladder cancer  variation in estimatesArsenic and bladder cancer  variation in estimates
Arsenic and bladder cancer variation in estimates
 
Research Methods in Health Sciences
Research Methods in Health SciencesResearch Methods in Health Sciences
Research Methods in Health Sciences
 
Overleaf presentation
Overleaf presentationOverleaf presentation
Overleaf presentation
 
Mixed methods research
Mixed methods researchMixed methods research
Mixed methods research
 
The Ibis Effect: The Migrant Indian Health Effect
The Ibis Effect: The Migrant Indian Health EffectThe Ibis Effect: The Migrant Indian Health Effect
The Ibis Effect: The Migrant Indian Health Effect
 
A Lecture on Sample Size and Statistical Inference for Health Researchers
A Lecture on Sample Size and Statistical Inference for Health ResearchersA Lecture on Sample Size and Statistical Inference for Health Researchers
A Lecture on Sample Size and Statistical Inference for Health Researchers
 
Access to Health Care and Andersen Model
Access to Health Care and Andersen ModelAccess to Health Care and Andersen Model
Access to Health Care and Andersen Model
 
Understanding indian health culture
Understanding indian health cultureUnderstanding indian health culture
Understanding indian health culture
 
Albinism
AlbinismAlbinism
Albinism
 
Priority Setting in Health Care
Priority Setting in Health CarePriority Setting in Health Care
Priority Setting in Health Care
 
Social determinants-health
Social determinants-healthSocial determinants-health
Social determinants-health
 
Introduction to DALY and burden of disease
Introduction to DALY and burden of diseaseIntroduction to DALY and burden of disease
Introduction to DALY and burden of disease
 
Mixed Methods research
Mixed Methods researchMixed Methods research
Mixed Methods research
 
India health-systems
India health-systemsIndia health-systems
India health-systems
 
Using Visual Methods and Social Network Analysis to Explore Relationships in ...
Using Visual Methods and Social Network Analysis to Explore Relationships in ...Using Visual Methods and Social Network Analysis to Explore Relationships in ...
Using Visual Methods and Social Network Analysis to Explore Relationships in ...
 
Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)
Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)
Presentation on UDHC for UC Tertiary Engagement Summit (Draft Slides)
 

Kürzlich hochgeladen

DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...SOFTTECHHUB
 
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...kumargunjan9515
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...nirzagarg
 
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
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareGraham Ware
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...HyderabadDolls
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...HyderabadDolls
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRajesh Mondal
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 

Kürzlich hochgeladen (20)

Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
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...
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 

How to Use R with Other Statistical Software

  • 1. Interfacing R with Other Software Arindam Basu MBBS MPH PhD School of Health Sciences, University of Canterbury arin.basu@gmail.com
  • 2. This is R in RStudio
  • 4. They Do Not Easily Speak …
  • 5. Questions … • Why Not? • Is there a Need to Let them Speak with Each Other? • Can I work entirely in R while keeping my data in Stata/Spss? • Can I work entirely in Stata while coding in R?
  • 6. Why do I need to Integrate? • I like R; my colleague likes X • Combine the flexibility and features of both software … • Others? • Demonstrate R
  • 7. Calling Stata Data into R • Use “foreign” package
  • 8. Calling R into SPSS • Install R plug-in from – http://www.ibm.com/developerworks/spssdevcen tral • You can use SPSS GUI following installation, or use SPSS syntax to get your work done
  • 9. SPSS Syntax to Call R in SPSS
  • 10. Running R from Within Stata • Use the “File” command to create the file to write R code • Invoke a shell using “shell” command within Stata • In Mac, OK to write “R” • In Windows, Use the /Path/to/R.exe
  • 11.
  • 12. Talking Points • It is relatively easy to use R flexibly with other software such as Stata and SPSS • Similar routines exist for SAS, JMP, and Statistica • The Package “Foreign” is very useful, but for large data sets, consider “memisc” package • With Other software, in most cases with R installed, invoking shell is effective • For More information, see http://r4stats.com/articles/calling-r/