SlideShare una empresa de Scribd logo
1 de 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/

Más contenido relacionado

Destacado

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
 

Destacado (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
 

Más de 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
 

Más de 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)
 

Último

专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhThiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhYasamin16
 
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...ssuserf63bd7
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our WorldEduminds Learning
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxdolaknnilon
 
办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一
办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一
办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一F sss
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGILLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGIThomas Poetter
 
Business Analytics using Microsoft Excel
Business Analytics using Microsoft ExcelBusiness Analytics using Microsoft Excel
Business Analytics using Microsoft Excelysmaelreyes
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max PrincetonTimothy Spann
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Seán Kennedy
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 

Último (20)

专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhhThiophen Mechanism khhjjjjjjjhhhhhhhhhhh
Thiophen Mechanism khhjjjjjjjhhhhhhhhhhh
 
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
Statistics, Data Analysis, and Decision Modeling, 5th edition by James R. Eva...
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our World
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptx
 
办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一
办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一
办理学位证加利福尼亚大学洛杉矶分校毕业证,UCLA成绩单原版一比一
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGILLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
 
Business Analytics using Microsoft Excel
Business Analytics using Microsoft ExcelBusiness Analytics using Microsoft Excel
Business Analytics using Microsoft Excel
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
Real-Time AI Streaming - AI Max Princeton
Real-Time AI  Streaming - AI Max PrincetonReal-Time AI  Streaming - AI Max Princeton
Real-Time AI Streaming - AI Max Princeton
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...Student Profile Sample report on improving academic performance by uniting gr...
Student Profile Sample report on improving academic performance by uniting gr...
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 

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/