Transforming Data / Running queries on data. Following steps will be performed to achieve our goal. While it’s also possible to use Stata’s shell command to run an R script (for illustrative purposes, let’s pretend it’s called my_script.R), Roger Newson’s rsource module makes it particularly easy. In this tutorial, I ll design a basic data analysis program in R using R Studio by utilizing the features of R Studio to create some visual representation of that data. R file with the commands you want to run in R (the “R script”), then-if necessary-reload the R output into Stata. The trick to running R from within your do-file is first to save the data you want to pass to R, then call the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |