I'm used to coding in R at this point, so it took me a second to figure this out:
# This is a note in R code
vs.
* This is a note in STATA code
Other small things that are hard to get use to: in R, if your code spills into the next line, you just keep typing (I usually indent just to keep it looking clean); but in STATA, you have to include "///" at the end of an unfinished line of code, to tell it to continue reading on the next line.
STATA seems to stop running code when it encounters a problem (?) vs. R which keeps going, throwing up error messages when appropriate but following thru to the end.
No comments:
Post a Comment