Stata 似乎不接受 Stata 16 中的正斜杠
Stata does not appear to accept forward slashes in Stata 16
示例来自 here.
webuse sem_sm2, clear
sem ///
(anomia67 pwless67 <- Alien67) /// measurement piece
(anomia71 pwless71 <- Alien71) /// measurement piece
(Alien67 <- SES) /// structural piece
(Alien71 <- Alien67 SES) /// structural piece
(SES -> educ occstat66), nolog // measurement piece
不知何故我得到的是:
. sem ///
invalid use of '/'
r(198);
.
. (anomia67 pwless67 <- Alien67) /// measurement piece
( is not a valid command name
r(199);
.
. (anomia71 pwless71 <- Alien71) /// measurement piece
( is not a valid command name
r(199);
.
. (Alien67 <- SES) /// structural piece
( is not a valid command name
r(199);
.
. (Alien71 <- Alien67 SES) /// structural piece
( is not a valid command name
r(199);
.
. (SES -> educ occstat66), nolog // measurement piece
( is not a valid command name
r(199);
谁能告诉我这是怎么回事?同事可以 运行 使用不同的版本。语法有变化吗?
有关注释的基本解释,请参阅手册中的 [U] 16.1.2。
The /* /, //, and /// comment indicators can be used in do-files and
ado-files only; you may not use them interactively. You can, however,
use the ‘’ comment indicator interactively.
示例来自 here.
webuse sem_sm2, clear
sem ///
(anomia67 pwless67 <- Alien67) /// measurement piece
(anomia71 pwless71 <- Alien71) /// measurement piece
(Alien67 <- SES) /// structural piece
(Alien71 <- Alien67 SES) /// structural piece
(SES -> educ occstat66), nolog // measurement piece
不知何故我得到的是:
. sem ///
invalid use of '/'
r(198);
.
. (anomia67 pwless67 <- Alien67) /// measurement piece
( is not a valid command name
r(199);
.
. (anomia71 pwless71 <- Alien71) /// measurement piece
( is not a valid command name
r(199);
.
. (Alien67 <- SES) /// structural piece
( is not a valid command name
r(199);
.
. (Alien71 <- Alien67 SES) /// structural piece
( is not a valid command name
r(199);
.
. (SES -> educ occstat66), nolog // measurement piece
( is not a valid command name
r(199);
谁能告诉我这是怎么回事?同事可以 运行 使用不同的版本。语法有变化吗?
有关注释的基本解释,请参阅手册中的 [U] 16.1.2。
The /* /, //, and /// comment indicators can be used in do-files and ado-files only; you may not use them interactively. You can, however, use the ‘’ comment indicator interactively.