这是数据包中截取的一个公司的数据。
计算每个公司的cf(cash flow)每10年的方差,必须至少要有3年的cf数据存在,否则设为缺失值
(calculate the standard deviation of cash flow for the previous 10 years(same firm), requiring at least 3 years data available,otherwise set sd as missing)
公司名是 gvkey
bys gvkey: egen sd=sd(cf) if cf!=0
请教一下如何编时间上的条件限制?