计算Stata多年来的标准偏差
我需要在Stata中计算过去3年(从T-2年起)在过去3年中的销售标准偏差。我的数据具有以下结构: 公司ID销售年份,
因此每个公司都会多次回来,每年都是一条新产品线。
I need to calculate the standard deviation of a company's sales over the last 3 years (from year t-2 until now) in Stata. My data has the following structure:
Firm.ID SALES YEAR
So each company comes back multiple times, with each year being a new line.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用SSC使用
rangestat
考虑此模拟:Consider this analogue using
rangestat
from SSC: