Hello! I am trying to use the xtheckman command with a data panel, specifically the panel has information from 10 individuals over 26 years, from 1996 to 2021, in addition the information is monthly, so I have 26*12=312 observations for each individual.
My data
I use the following command to perform the heckman
But when I run the command I get the following error
I appreciate any help since this work is for my doctoral thesis and I am short on time.
Thank you so much
My data
Code:
tiempo id_trabajador rem_tot sexo tenure edad desempleo "1996-01-01" 5929 673.13074 1 1 34 .171 "1996-02-01" 5929 700.77625 1 2 34 .171 "1996-03-01" 5929 704.61829 1 3 34 .171 "1996-04-01" 5929 738.87048 1 4 34 .171 "1996-05-01" 5929 668.61676 1 5 34 .171 "1996-06-01" 5929 1130.1899 1 6 34 .171 "1996-07-01" 5929 693.80298 1 7 34 .173 "1996-08-01" 5929 532.82471 1 8 34 .173 "1996-09-01" 5929 442.36554 1 9 34 .173 "1996-10-01" 5929 475.64505 1 10 34 .173 "1996-11-01" 5929 535.51196 1 11 34 .173 "1996-12-01" 5929 632.32269 1 12 34 .173 "1997-01-01" 5929 . 1 . 35 .148 "1997-02-01" 5929 . 1 . 35 .148 "1997-03-01" 5929 . 1 . 35 .148 "1997-04-01" 5929 258.59531 1 1 35 .148 "1997-05-01" 5929 320.48413 1 2 35 .148 "1997-06-01" 5929 399.21515 1 3 35 .148 "1997-07-01" 5929 . 1 . 35 .148 "1997-08-01" 5929 . 1 . 35 .148 "1997-09-01" 5929 . 1 . 35 .148 "1997-10-01" 5929 . 1 . 35 .148 "1997-11-01" 5929 . 1 . 35 .148 "1997-12-01" 5929 . 1 . 35 .148 "1998-01-01" 5929 . 1 . 36 .133 "1998-02-01" 5929 . 1 . 36 .133 "1998-03-01" 5929 . 1 . 36 .133 "1998-04-01" 5929 . 1 . 36 .133 "1998-05-01" 5929 . 1 . 36 .133 "1998-06-01" 5929 . 1 . 36 .133 "1998-07-01" 5929 . 1 . 36 .125 "1998-08-01" 5929 . 1 . 36 .125 "1998-09-01" 5929 . 1 . 36 .125 "1998-10-01" 5929 . 1 . 36 .125 "1998-11-01" 5929 . 1 . 36 .125 "1998-12-01" 5929 . 1 . 36 .125 "1999-01-01" 5929 . 1 . 37 .146 "1999-02-01" 5929 . 1 . 37 .146 "1999-03-01" 5929 . 1 . 37 .146 "1999-04-01" 5929 . 1 . 37 .146 "1999-05-01" 5929 . 1 . 37 .146 "1999-06-01" 5929 . 1 . 37 .146 "1999-07-01" 5929 . 1 . 37 .139 "1999-08-01" 5929 . 1 . 37 .139 "1999-09-01" 5929 . 1 . 37 .139 "1999-10-01" 5929 . 1 . 37 .139 "1999-11-01" 5929 . 1 . 37 .139 "1999-12-01" 5929 . 1 . 37 .139 "2000-01-01" 5929 . 1 . 38 .154 "2000-02-01" 5929 . 1 . 38 .154 "2000-03-01" 5929 . 1 . 38 .154 "2000-04-01" 5929 . 1 . 38 .154 "2000-05-01" 5929 . 1 . 38 .154 "2000-06-01" 5929 . 1 . 38 .154 "2000-07-01" 5929 . 1 . 38 .148 "2000-08-01" 5929 . 1 . 38 .148 "2000-09-01" 5929 . 1 . 38 .148 "2000-10-01" 5929 . 1 . 38 .148 "2000-11-01" 5929 . 1 . 38 .148 "2000-12-01" 5929 . 1 . 38 .148 "2001-01-01" 5929 . 1 . 39 .164 "2001-02-01" 5929 . 1 . 39 .164 "2001-03-01" 5929 . 1 . 39 .164 "2001-04-01" 5929 . 1 . 39 .164 "2001-05-01" 5929 . 1 . 39 .164 "2001-06-01" 5929 . 1 . 39 .164 "2001-07-01" 5929 . 1 . 39 .184 "2001-08-01" 5929 . 1 . 39 .184 "2001-09-01" 5929 . 1 . 39 .184 "2001-10-01" 5929 . 1 . 39 .184 "2001-11-01" 5929 . 1 . 39 .184 "2001-12-01" 5929 . 1 . 39 .184 "2002-01-01" 5929 . 1 . 40 .215 "2002-02-01" 5929 . 1 . 40 .215 "2002-03-01" 5929 . 1 . 40 .215 "2002-04-01" 5929 . 1 . 40 .215 "2002-05-01" 5929 . 1 . 40 .215 "2002-06-01" 5929 . 1 . 40 .215 "2002-07-01" 5929 . 1 . 40 .179 "2002-08-01" 5929 . 1 . 40 .179 "2002-09-01" 5929 . 1 . 40 .179 "2002-10-01" 5929 . 1 . 40 .179 "2002-11-01" 5929 . 1 . 40 .179 "2002-12-01" 5929 . 1 . 40 .179 "2003-01-01" 5929 . 1 . 41 .161 "2003-02-01" 5929 . 1 . 41 .161 "2003-03-01" 5929 . 1 . 41 .161 "2003-04-01" 5929 . 1 . 41 .161 "2003-05-01" 5929 . 1 . 41 .161 "2003-06-01" 5929 . 1 . 41 .161 "2003-07-01" 5929 . 1 . 41 .144 "2003-08-01" 5929 . 1 . 41 .144 "2003-09-01" 5929 . 1 . 41 .144 "2003-10-01" 5929 . 1 . 41 .144 "2003-11-01" 5929 . 1 . 41 .144 "2003-12-01" 5929 . 1 . 41 .144 "2004-01-01" 5929 . 1 . 42 .143 "2004-02-01" 5929 . 1 . 42 .143 "2004-03-01" 5929 . 1 . 42 .143 "2004-04-01" 5929 . 1 . 42 .147 end
I use the following command to perform the heckman
Code:
xtheckman rem_tot c.edad##c.edad tenure, select(working = c.edad##c.edad desempleo)
Code:
initial values not feasible r(1400); end of do-file
Thank you so much
Comment