有A.dta和B.dta,其中A和B文件包括多个虚拟变量(有共同的,也有其中一个不包括的),另外是一些数值型变量。合并的程序如下:
clear
log using merg, replace
use A.dta , clear
sort id
merge id B.dta, sort
save AB, replace
clear
log close
运行这段程序过程中总是出现:
(note: you are using old merge syntax; see [D] merge for new syntax)
factor variables and time-series operators not allowed
r(101);
请问是什么原因? 谢谢!