Hi all,
I have the following problem:
I need to create a variable Cashflow volatility which is defined as the standard deviation of cash flow-to-assets (CFTA) from the previous ten fiscal years (e.g. for 2011: 2001,2002,...,2010). The firm is required to have at least 3 observations. (As in my previous post we have fyear as variable for fiscal year and gvkey as firm identifier)
Unfortunately I have no idea how to include the point regarding the minimum observation requirement. I tried to build up an example beneath.
It would be great, if someone helped me.
Thank you very much.
input gvkey CFTA fyear 101 5 2001 101 6 2002 101 7 2003 101 -1 2004 101 3 2005 101 -1 2006 101 1 2007 101 4 2008 101 2 2009 101 3 2010 101 8 2011 102 5 2001 102 -3 2002 102 7 2003 102 -1 2004 102 3 2005 102 -1 2006 102 1 2007 103 7 2001 103 2 2002 104 1 2000 end
I have the following problem:
I need to create a variable Cashflow volatility which is defined as the standard deviation of cash flow-to-assets (CFTA) from the previous ten fiscal years (e.g. for 2011: 2001,2002,...,2010). The firm is required to have at least 3 observations. (As in my previous post we have fyear as variable for fiscal year and gvkey as firm identifier)
Unfortunately I have no idea how to include the point regarding the minimum observation requirement. I tried to build up an example beneath.
It would be great, if someone helped me.
Thank you very much.
input gvkey CFTA fyear 101 5 2001 101 6 2002 101 7 2003 101 -1 2004 101 3 2005 101 -1 2006 101 1 2007 101 4 2008 101 2 2009 101 3 2010 101 8 2011 102 5 2001 102 -3 2002 102 7 2003 102 -1 2004 102 3 2005 102 -1 2006 102 1 2007 103 7 2001 103 2 2002 104 1 2000 end
Comment