Dear all,
I am using panel data and I would like to know how to solve this issue:
I need to use probit model where I have to xtset my panel var.
I use this code:
but stata gives me
I might know the issue (repeated id-years because of the exp and imp variables). But I do not how to solve this problem. Could you please help?
Thank you
I am using panel data and I would like to know how to solve this issue:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int year byte(id exp1_code_inds imp1_code_inds) str1 headq_link 2011 1 40 30 "b" 2011 1 50 20 "a" 2011 1 50 30 "a" 2011 1 40 20 "b" 2011 1 40 40 "b" 2011 1 50 40 "a" 2012 1 50 20 "a" 2012 1 40 30 "b" 2012 1 50 40 "a" 2012 1 50 30 "a" 2012 1 40 40 "b" 2012 1 40 20 "b" 2013 1 40 20 "b" 2013 1 50 30 "a" 2013 1 40 40 "b" 2013 1 50 20 "a" 2013 1 50 40 "a" 2013 1 40 30 "b" 2011 2 30 20 "a" 2011 2 30 40 "a" 2011 2 40 30 "b" 2011 2 40 20 "b" 2011 2 40 40 "b" 2011 2 30 30 "a" 2012 2 30 30 "a" 2012 2 40 40 "b" 2012 2 40 20 "b" 2012 2 30 40 "a" 2012 2 40 30 "b" 2012 2 30 20 "a" 2013 2 40 30 "b" 2013 2 40 20 "b" 2013 2 30 40 "a" 2013 2 30 30 "a" 2013 2 30 20 "a" 2013 2 40 40 "b" end format %ty year
I use this code:
Code:
xtset id year, yearly
Code:
. xtset id year, yearly repeated time values within panel r(451); end of do-file r(451);
Thank you
Comment