Hey Guys I hope you are doing well.
I am trying to make Dickey Fuller test to test for unit roots and then I want to make a VAR model for growth productivity and growth export for Croatia. I have data from 2003 to 2012 for more than 64.000 firms. But when I run the command dfuller for my variable in Stata 12 I get an error (459) that sample may not include multiple panels. I already xtset my panel data which is unbalanced. What do you suggest for me? After doing the DF test i would like to run a VAR model for growthproductivity and growthexport.
Here is my code:
Thanks in advance
I am trying to make Dickey Fuller test to test for unit roots and then I want to make a VAR model for growth productivity and growth export for Croatia. I have data from 2003 to 2012 for more than 64.000 firms. But when I run the command dfuller for my variable in Stata 12 I get an error (459) that sample may not include multiple panels. I already xtset my panel data which is unbalanced. What do you suggest for me? After doing the DF test i would like to run a VAR model for growthproductivity and growthexport.
Here is my code:
Code:
clear input float firm int year float(growthtfp growthexp) 201 2003 . . 201 2004 .33881569 . 201 2005 -.17207432 . 201 2006 .47192192 . 201 2007 -.13453388 . 201 2008 -.24717045 . 201 2009 -.18523502 . 201 2010 -1.5485363 . 201 2011 .70168686 . 202 2003 .95038128 . 202 2006 . . 202 2007 .25359917 . 202 2008 -.28764343 . 202 2009 -.43756771 . 202 2010 .49980736 -.53359604 202 2011 -.6887207 .50001144 202 2012 .08063412 .52244854 204 2003 . . 204 2004 -.15126801 . 204 2005 -.12458897 . 204 2007 .34955502 . 204 2008 .5278101 . 204 2009 -.05338955 . 204 2010 .03894329 . 204 2011 -.2994957 . 204 2012 -.92936611 . 205 2003 . . 205 2005 .23685551 . 205 2007 -.37987423 -2.6108513 205 2008 .92860031 . 205 2009 -.44887352 . 205 2010 .3864603 4.9606047 205 2011 -.11122036 -6.5568333 205 2012 -.23620224 2.4473543 206 2007 . . 207 2003 . . 209 2004 . . 209 2005 -.08526993 . 209 2006 .1163044 . 209 2007 .23593521 . 209 2008 -.18027687 . 209 2009 -.19822025 . 209 2010 -.04927063 . 209 2011 -.02280807 . 209 2012 .02850342 . 211 2004 . . 211 2007 .33381462 . 211 2008 .42588806 . 211 2009 .3920908 . 211 2010 -.9196825 . 211 2011 .32289886 . 212 2004 . . 212 2005 .25462914 . 212 2006 .20870209 . 212 2007 .36477089 . 215 2004 . . 215 2005 1.5399866 . 215 2006 -.43504906 . 215 2007 .01071644 . 215 2008 .30375767 . 215 2009 -.21310425 . 215 2010 -.05242252 . 215 2011 .04187584 . 215 2012 -.2951479 . 218 2003 . . 218 2004 .33166981 . 218 2006 -.22263718 . 218 2007 -.03172112 -.21253014 218 2008 -.11574554 -1.4677296 218 2009 .21086216 1.3805637 218 2010 .00358105 -.52448654 218 2011 -.06929111 .51715374 218 2012 .00861645 -.32831097 220 2003 . . 220 2005 -1.0071678 . 220 2006 .45889854 . 220 2007 1.1440783 . 220 2008 .10776901 . 220 2009 -.85040092 . 220 2010 .53544998 . 220 2011 -1.8175049 . 220 2012 .89534473 . 223 2003 . . 223 2004 -.20852757 . 223 2006 .50251579 . 223 2007 -.46890736 . 223 2008 .0975256 . 223 2009 .13470268 . 223 2010 .565938 . 223 2011 -.3130312 . 223 2012 -.33418751 . 224 2004 . . 225 2004 . . 225 2005 .01844883 . 227 2003 .31607723 . 227 2004 . . 227 2005 -.09313488 . 227 2006 -.12999725 . 227 2007 .35443783 . 227 2008 .1342926 . 227 2009 -.09089279 . 227 2010 -.07043457 . 227 2011 -.2537632 . 228 2003 . . 228 2004 -.27766037 . 228 2005 -.33545208 . 228 2006 .25664711 1.857501 228 2007 .22931671 1.5663939 228 2008 .17338276 -.76774311 228 2009 -.27063179 .04337788 228 2010 .2204504 .95364857 228 2011 -.30223274 .43293571 229 2011 . . end
Comment