Stata Comment // Error / invalid name r(198); [How to Solve]

Stata common notes

Method 1: * enter * at the front of a single line to indicate the comment of this line
method 2:// enter anywhere in a single line.// the content after// is commented

Annotation usage scenario

For mode 1 *, you can use it in the command line or do file
for mode 2//, the error “/ invalid name R (198)” will be reported in the command line (as shown in the figure below), but it is completely normal to use it in the do file. So, there is a small concept of losing small difference!


Read More: