917968079 发表于 2022-9-9 12:06 
可参考此推文:https://www.lianxh.cn/news/08bfff06551c4.html
试了代码asrol innovation window(year 5), stat(mean) by (code),第一次可以运行,换了更多年度的数据后开始报错,提示下面这个
factor-variable and time-series operators not allowed
r(101);
求问您知道原因吗,谢谢
code是公司代码,innovation是专利数