Hello,
I have a panel dataset of different regions. I have data of the number of conflicts of each region from 1989 - 2020 . My database is unique identified by the region and the year. Below I attach an example:
I would like to know if the variation of the variable "wanted" is due to a variation within regions or between regions. To do it, I have used the commands xtsum and xttab (for all the database). I write below the results:
I would like to ask two things:
1) I would like to know how big is my variation and if that variation is due to between regions or within regions. I have read "help xtsum" but I have not cleared how quantify the magnitude of the variation (if it's big or not) and how much is due to within or between.
2) I would also like to ask if there are other commands in Stata (do a graph or something) to visualize if the variation is between or within or to help me to understand what is going on with the data in descriptive terms.
If my questions are not clear or you need more information, please do not doubt to ask for it.
I have a panel dataset of different regions. I have data of the number of conflicts of each region from 1989 - 2020 . My database is unique identified by the region and the year. Below I attach an example:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long gid int year float wanted 81037 1989 1 81037 1990 1 81037 1991 3 81037 1992 2 81037 1993 1 81037 1994 2 81037 1995 0 81037 1996 0 81037 1997 2 81037 1998 0 81037 1999 0 81037 2000 0 81037 2001 0 81037 2002 1 81037 2003 0 81037 2004 0 81037 2005 0 81037 2006 0 81037 2007 0 81037 2008 0 81037 2009 0 81037 2010 0 81037 2011 0 81037 2012 0 81037 2013 0 81037 2014 0 81037 2015 0 81037 2016 0 81037 2017 0 81037 2018 0 81037 2019 0 81037 2020 0 137902 1989 0 137902 1990 0 137902 1991 0 137902 1992 0 137902 1993 0 137902 1994 0 137902 1995 0 137902 1996 0 137902 1997 0 137902 1998 0 137902 1999 0 137902 2000 0 137902 2001 0 137902 2002 0 137902 2003 0 137902 2004 0 137902 2005 0 137902 2006 0 137902 2007 0 137902 2008 0 137902 2009 0 137902 2010 0 137902 2011 0 137902 2012 0 137902 2013 0 137902 2014 0 137902 2015 0 137902 2016 0 137902 2017 0 137902 2018 0 137902 2019 0 137902 2020 1 140096 1989 0 140096 1990 0 140096 1991 0 140096 1992 0 140096 1993 0 140096 1994 0 140096 1995 0 140096 1996 0 140096 1997 0 140096 1998 0 140096 1999 0 140096 2000 0 140096 2001 0 140096 2002 0 140096 2003 0 140096 2004 0 140096 2005 0 140096 2006 0 140096 2007 0 140096 2008 0 140096 2009 0 140096 2010 0 140096 2011 0 140096 2012 1 140096 2013 0 140096 2014 0 140096 2015 2 140096 2016 0 140096 2017 0 140096 2018 2 140096 2019 0 140096 2020 0 140097 1989 0 140097 1990 0 140097 1991 0 140097 1992 0 end
I would like to know if the variation of the variable "wanted" is due to a variation within regions or between regions. To do it, I have used the commands xtsum and xttab (for all the database). I write below the results:
I would like to ask two things:
1) I would like to know how big is my variation and if that variation is due to between regions or within regions. I have read "help xtsum" but I have not cleared how quantify the magnitude of the variation (if it's big or not) and how much is due to within or between.
2) I would also like to ask if there are other commands in Stata (do a graph or something) to visualize if the variation is between or within or to help me to understand what is going on with the data in descriptive terms.
If my questions are not clear or you need more information, please do not doubt to ask for it.
Comment