Hello! This is my first time posting so my apologies if this is not clear. I am trying to use the mi testtransform command in Stata 13.1 to test the equality of coefficients from interactions in a logistic regression model. I am using stratified and weighted data with the subpop command. However, the command is not producing any results and I am not sure if the syntax is correct.
Below is my syntax:
mi estimate, saving(miest, replace): svy, subpop(nosingcores): logistic momclose_4rv trimar_4r##race_ethr i.childimm i.female age_4 i.parent_4 i.educ_4 i.lfs_4 $mothertraits
mi test 2.trimar_4r#2.race_ethr 2.trimar_4r#4.race_ethr 2.trimar_4r#7.race_ethr
mi test 2.race_ethr 4.race_ethr 7.race_ethr
mi estimate (diff1:_b[1.trimar_4r#1.race_ethr]-_b[2.trimar_4r#1.race_ethr]) using miest
mi testtransform diff1
I have attached a snapshot of the log file from the testtransform portion, which look like this:
Transformations Average RVI = 0.0000
Largest FMI = 0.0000
Complete DF = 128
DF adjustment: Small sample DF: min = 0.00
avg = 0.00
Within VCE type: Linearized max = 0.00
diff1: _b[1.trimar_4r#1.race_ethr]-_b[2.trimar_4r#1.race_ethr]
------------------------------------------------------------------------------
momclose_4rv | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
diff1 | 0 (omitted)
------------------------------------------------------------------------------
. mi testtransform diff1
note: assuming equal fractions of missing information
diff1: _b[1.trimar_4r#1.race_ethr]-_b[2.trimar_4r#1.race_ethr]
( 1) diff1 = 0
Constraint 1 dropped
F( 0, .) = 0.00
Prob > F = .
Is there something that I am missing? Any help is much appreciated.
Thanks,
Jenjira
Below is my syntax:
mi estimate, saving(miest, replace): svy, subpop(nosingcores): logistic momclose_4rv trimar_4r##race_ethr i.childimm i.female age_4 i.parent_4 i.educ_4 i.lfs_4 $mothertraits
mi test 2.trimar_4r#2.race_ethr 2.trimar_4r#4.race_ethr 2.trimar_4r#7.race_ethr
mi test 2.race_ethr 4.race_ethr 7.race_ethr
mi estimate (diff1:_b[1.trimar_4r#1.race_ethr]-_b[2.trimar_4r#1.race_ethr]) using miest
mi testtransform diff1
I have attached a snapshot of the log file from the testtransform portion, which look like this:
Transformations Average RVI = 0.0000
Largest FMI = 0.0000
Complete DF = 128
DF adjustment: Small sample DF: min = 0.00
avg = 0.00
Within VCE type: Linearized max = 0.00
diff1: _b[1.trimar_4r#1.race_ethr]-_b[2.trimar_4r#1.race_ethr]
------------------------------------------------------------------------------
momclose_4rv | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
diff1 | 0 (omitted)
------------------------------------------------------------------------------
. mi testtransform diff1
note: assuming equal fractions of missing information
diff1: _b[1.trimar_4r#1.race_ethr]-_b[2.trimar_4r#1.race_ethr]
( 1) diff1 = 0
Constraint 1 dropped
F( 0, .) = 0.00
Prob > F = .
Is there something that I am missing? Any help is much appreciated.
Thanks,
Jenjira
Comment