How to create a variable that uses lagged instance of its own value?

前端 未结 0 1790
独厮守ぢ
独厮守ぢ 2020-11-29 23:56

There is a panle dataset. I have to compute a new variable "cases_new"=3^(lag(cases,n=1L)) for the first date alone. Then the 2nd date onwards, it uses lag on its

相关标签:
回答
  • 消灭零回复
提交回复
热议问题