help mi_test suggests that the specification of plain vanilla tests after mi estimate are of the form mi test coeflist .How does one specify coeflist in the case of factor variables? I can't get this to work (see below) for the case of a single factor variable, let alone interaction terms for 2 factor variables.
I can't find advice on this in the help or manuals (but may have missing something). I can get results if I specify the coeflist manually, but I want to avoid that.
.
I can't find advice on this in the help or manuals (but may have missing something). I can get results if I specify the coeflist manually, but I want to avoid that.
Code:
. mi estimate: reg gini_net i.year if region == 5 & year > 1990 & year < 2007 Multiple-imputation estimates Imputations = 100 Linear regression Number of obs = 401 Average RVI = 0.0468 Largest FMI = 0.0604 Complete DF = 385 DF adjustment: Small sample DF: min = 355.39 avg = 363.17 max = 378.04 Model F test: Equal FMI F( 15, 382.8) = 0.53 Within VCE type: OLS Prob > F = 0.9249 ------------------------------------------------------------------------------ gini_net | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- year | 1992 | .2601348 1.525127 0.17 0.865 -2.738659 3.258929 1993 | 1.006815 1.5231 0.66 0.509 -1.988172 4.001803 1994 | 1.377235 1.527145 0.90 0.368 -1.625771 4.38024 1995 | 1.623852 1.514133 1.07 0.284 -1.353781 4.601486 1996 | 1.672173 1.519782 1.10 0.272 -1.316452 4.660798 1997 | 1.816323 1.521787 1.19 0.233 -1.176278 4.808924 1998 | 2.290752 1.540125 1.49 0.138 -.7379953 5.319499 1999 | 1.96233 1.520791 1.29 0.198 -1.028517 4.953178 2000 | 2.744941 1.56078 1.76 0.079 -.3245387 5.81442 2001 | 2.897571 1.561122 1.86 0.064 -.1725886 5.967731 2002 | 1.074202 1.546792 0.69 0.488 -1.967778 4.116182 2003 | 2.202671 1.569541 1.40 0.161 -.8839185 5.28926 2004 | 1.501412 1.560643 0.96 0.337 -1.567526 4.570351 2005 | 1.584315 1.597405 0.99 0.322 -1.556956 4.725586 2006 | 2.01109 1.657117 1.21 0.226 -1.247545 5.269725 | _cons | 44.85401 1.128164 39.76 0.000 42.63529 47.07273 ------------------------------------------------------------------------------ . end of do-file . mi test i.(1991/2006)year note: assuming equal fractions of missing information i: operator invalid r(198); . mi test 1991.year 1992.year 1993.year 1994.year 1995.year 1996.year 1997.year 1998.year 1999.year 2000.year 2001.year 2002.year 2003.year 2004.year 2005.year 2006.year note: assuming equal fractions of missing information ( 1) 1991b.year = 0 ( 2) 1992.year = 0 ( 3) 1993.year = 0 ( 4) 1994.year = 0 ( 5) 1995.year = 0 ( 6) 1996.year = 0 ( 7) 1997.year = 0 ( 8) 1998.year = 0 ( 9) 1999.year = 0 (10) 2000.year = 0 (11) 2001.year = 0 (12) 2002.year = 0 (13) 2003.year = 0 (14) 2004.year = 0 (15) 2005.year = 0 (16) 2006.year = 0 Constraint 1 dropped F( 15, 382.8) = 0.53 Prob > F = 0.9249
Comment