This identical question was asked, and in part answered, at
https://www.statalist.org/forums/for...egression-loop
https://www.statalist.org/forums/for...egression-loop
* Example generated by -dataex-. To install: ssc install dataex clear input str12 Code float Year double inflation "AUS" 1998 .86009997 "AUS" 1999 1.4831001 "AUS" 2000 4.4573998 "AUS" 2001 4.4071002 "AUS" 2002 2.9816 "AUS" 2003 2.7326 "AUS" 2004 2.3433001 "AUS" 2005 2.6918001 "AUS" 2006 3.5553 "AUS" 2007 2.3276 "AUS" 2008 4.3502998 "AUS" 2009 1.7711 "AUS" 2010 2.9182999 "AUS" 2011 3.3039 "AUS" 2012 1.7628 "AUS" 2013 2.4498999 "AUS" 2014 2.4879 "AUS" 2015 1.5084 "AUS" 2016 1.277 "AUS" 2017 1.9486001 "AUT" 1998 .92250001 "AUT" 1999 .56900001 "AUT" 2000 2.3448999 "AUT" 2001 2.6500001 "AUT" 2002 1.8104 "AUT" 2003 1.3556 "AUT" 2004 2.0611999 "AUT" 2005 2.2990999 "AUT" 2006 1.4414999 "AUT" 2007 2.1686001 "AUT" 2008 3.2160001 "AUT" 2009 .50629997 "AUT" 2010 1.8135 "AUT" 2011 3.2866001 "AUT" 2012 2.4856999 "AUT" 2013 2.0002 "AUT" 2014 1.6058 "AUT" 2015 .89660001 "AUT" 2016 .89160001 "AUT" 2017 2.0813 "BEL" 1998 .94929999 "BEL" 1999 1.1208 "BEL" 2000 2.5445001 "BEL" 2001 2.4693 "BEL" 2002 1.6452 "BEL" 2003 1.589 "BEL" 2004 2.0973001 "BEL" 2005 2.7814 "BEL" 2006 1.7912 "BEL" 2007 1.8231 "BEL" 2008 4.4893999 "BEL" 2009 -.0531 "BEL" 2010 2.1893001 "BEL" 2011 3.5321 "BEL" 2012 2.8397 "BEL" 2013 1.1131001 "BEL" 2014 .34 "BEL" 2015 .5614 "BEL" 2016 1.9739 "BEL" 2017 2.1259999 "CAN" 1998 .99589998 "CAN" 1999 1.7348 "CAN" 2000 2.7193999 "CAN" 2001 2.5251 "CAN" 2002 2.2584 "CAN" 2003 2.7586 "CAN" 2004 1.8573 "CAN" 2005 2.2135999 "CAN" 2006 2.0020001 "CAN" 2007 2.1384001 "CAN" 2008 2.3703001 "CAN" 2009 .29949999 "CAN" 2010 1.7769001 "CAN" 2011 2.9121001 "CAN" 2012 1.5157 "CAN" 2013 .93830001 "CAN" 2014 1.9066 "CAN" 2015 1.1252 "CAN" 2016 1.4288 "CAN" 2017 1.5969 "CHE" 1998 .0179 "CHE" 1999 .8064 "CHE" 2000 1.5585001 "CHE" 2001 .98900002 "CHE" 2002 .64270002 "CHE" 2003 .6383 "CHE" 2004 .80290002 "CHE" 2005 1.1720001 "CHE" 2006 1.0595 "CHE" 2007 .7324 "CHE" 2008 2.4260001 "CHE" 2009 -.48050001 "CHE" 2010 .6882 "CHE" 2011 .2313 "CHE" 2012 -.69260001 "CHE" 2013 -.2173 "CHE" 2014 -.0132 "CHE" 2015 -1.1439 "CHE" 2016 -.4346 "CHE" 2017 .53380001 end
Comment