Hi, I am now running a panel regression, for example, return in year 2018=c+return in year 2010-2017+e. And year 2010-2017 is categorized as group 1, year 2018 is group 0. as attached.
year group return
2010 1 10
2011 1 11
2012 1 12
2013 1 13
2014 1 14
2015 1 15
2016 1 16
2017 1 17
2018 0 18
how should I do this?

Thank you and best,
Ivy