Hello everyone,
I used the e(sample) function to check, which observations of my panel data set can be used for regression. Can anyone explain to me, why the function generate sample=e(sample) returns a "0" on the observation "PERMNO" = 90215; "YearEffective" = 2003 ? From my point of view there is no reason for not taking it into the regression.
Having used the "fillin" command in advance to using , generate sample=e(sample), a "1" is returned on this observation, indicating it can be used for regression.
Am I missing out on something or is this sort of a bug?
Thank you in advance for your help
Chris
I used the e(sample) function to check, which observations of my panel data set can be used for regression. Can anyone explain to me, why the function generate sample=e(sample) returns a "0" on the observation "PERMNO" = 90215; "YearEffective" = 2003 ? From my point of view there is no reason for not taking it into the regression.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(PERMNO YearEffective) int patents float(xrdintensity ln_emp) int AcquirorPrimarySICCode str4 curcd byte Numberofmergers float sample 90215 2002 0 .11715776 . 7372 "USD" 0 0 90215 2003 0 .07955571 .4173937 7372 "USD" 0 0 90215 2004 0 .035016168 .5692832 7372 "USD" 0 1 90215 2005 0 .05366315 .8346468 7372 "USD" 0 1 90215 2006 0 .06710567 1.1216775 7372 "USD" 1 1 90215 2007 1 .05856499 1.282599 7372 "USD" 0 1 90215 2008 0 .06725809 1.5186375 7372 "USD" 0 1 90215 2009 5 .05361228 1.6032186 7372 "USD" 0 1 90215 2010 9 .06078194 1.8415016 7372 "USD" 0 1 end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(PERMNO YearEffective) int patents float(xrdintensity ln_emp) int AcquirorPrimarySICCode str4 curcd byte Numberofmergers float sample 90215 2000 0 . . 7372 "" 0 0 90215 2001 0 . . 7372 "" 0 0 90215 2002 0 .11715776 . 7372 "USD" 0 0 90215 2003 0 .07955571 .4173937 7372 "USD" 0 1 90215 2004 0 .035016168 .5692832 7372 "USD" 0 1 90215 2005 0 .05366315 .8346468 7372 "USD" 0 1 90215 2006 0 .06710567 1.1216775 7372 "USD" 1 1 90215 2007 1 .05856499 1.282599 7372 "USD" 0 1 90215 2008 0 .06725809 1.5186375 7372 "USD" 0 1 90215 2009 5 .05361228 1.6032186 7372 "USD" 0 1 90215 2010 9 .06078194 1.8415016 7372 "USD" 0 1 end
Thank you in advance for your help
Chris
Comment