我通过“gen 收益率=(收盘价/l.收盘价)-1”计算出日收益率,想用“ascol 收益率,toweek returns(simple) gen(周收益率)”计算周收益率,但是一直报错,求大神教教我应该如何解决!感谢!
ascol 收益率, toweek returns(simple)
asrol may not be combined with by
r(190);
. ascol 收益率,toweek returns(simple) prices keep(vars) gen(周收益率)
You have specified both prices and returns option
Only one option is allowed at a time
. ascol 收益率,toweek returns(simple) gen(周收益率)
variable week_id_000 already defined
r(110);