diff --git a/dictionary.md b/dictionary.md index bc7ab22..a63cb31 100644 --- a/dictionary.md +++ b/dictionary.md @@ -1,7 +1,11 @@ The following table provides some quick translations of Stata commands into R. Since R supports multiple data sets, we need to specify a specific data set to manipulate when using data accessing/modifying commands. We use mydata as the default data set to target. +See also: https://github.com/EconometricsBySimulation/RStata/wiki/Dictionary:-Stata-to-R + Stata | R | Description ------------------------------|--------------------------------------------|------------------------------ +cls | cat("\014") | Clears the screen +clear all | rm(list=ls()) | Clears data. Set fresh workspace insheet using "foo.csv", comma| mydata <- read.csv("foo.csv") | Read csv file cd "mydirectory" | setwd("mydirectory") | Change working directories reg y x1 x2 | summary(lm(y~x1+x2, data=mydata)) | Ordinary least squares with constant