Your SlideShare is downloading.
×

×

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

Like this presentation? Why not share!

- Statr sessions 11 to 12 by RuruChowdhury 189 views
- Statr session 19 and 20 by RuruChowdhury 169 views
- A seminar about RMAWGEN by Emanuele Cordano 812 views
- JHydro - an implementation of the d... by silli 1830 views
- Descriptive Statistics with R by Kazuki Yoshida 1666 views
- Software for Qualitative and Quanti... by Alexandru Caratas... 185 views
- Software Programs for Data Analysis by unmgrc 6339 views
- An Introduction to SPSS by Raj Gunesh 1361 views
- SPSS an intro... by Jithin Clashes Zcs 2994 views
- Introduction to R Graphics with ggp... by izahn 29557 views
- Spss lecture notes by David mbwiga 8319 views
- Reshaping Data in R by Jeffrey Breen 15930 views

Like this? Share it with your network
Share

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

No Downloads

Total Views

496

On Slideshare

0

From Embeds

0

Number of Embeds

1

Shares

0

Downloads

16

Comments

0

Likes

1

No embeds

No notes for slide

- 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/

Be the first to comment