Dear all,
This is about creating dependent variables for a convergence study with panel data in long form.
My panel dataset looks like the example below:
I am trying to create, for some variables, its change over time using the last and the first value for each observation (var1 at time 1 - var1 at time 0), such that column delta_var1 will record each calculated change in corresponding initial t (e.g., var1 at time2013 - var1 at time1991 in a cell for year 1983, etcetera). The goal is to perform convergence regressions.
My problem is:
- How to generate these delta variables?
- How to take into account for the analysis that the first and last value are not same for all the observations I have?
Thanks in advance for your help.
Kind Regards,
Francesco
This is about creating dependent variables for a convergence study with panel data in long form.
My panel dataset looks like the example below:
Code:
reg_cod reg_code_n year var1 delta_var1 ------------------------------------------------------------------------- AT 11 1983 . AT 11 1984 . AT 11 1985 . AT 11 1986 . AT 11 1987 . AT 11 1988 . AT 11 1989 . AT 11 1990 . AT 11 1991 .2600 AT 11 1992 .2611 AT 11 1993 . AT 11 1994 .2789 AT 11 1995 .2766 AT 11 1996 . AT 11 1997 .2656 AT 11 1998 . AT 11 1999 . AT 11 2000 .2550 AT 11 2001 . AT 11 2002 . AT 11 2003 . AT 11 2004 .2682 AT 11 2005 . AT 11 2006 . AT 11 2007 .2834 AT 11 2008 . AT 11 2009 . AT 11 2010 .2792 AT 11 2011 . AT 11 2012 . AT 11 2013 .2776 AT 11 2014 . AT 11 2015 . --------------------------------------------------------------------------- AT1 111 1983 . AT1 111 1984 .3011 AT1 111 1985 .3324 ... ... ... ---------------------------------------------------------------------------
My problem is:
- How to generate these delta variables?
- How to take into account for the analysis that the first and last value are not same for all the observations I have?
Thanks in advance for your help.
Kind Regards,
Francesco
Comment