Your SlideShare is downloading. ×
How to Use R with Other Statistical Software
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

How to Use R with Other Statistical Software

496

Published on

A short lecture on how to use R with other software such as Stata and SPSS

A short lecture on how to use R with other software such as Stata and SPSS

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
496
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 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
  • 3. This is Stata
  • 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. 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/

×