Dear Statalist,
I would like to perform a Wald test for the significance of an interaction between a categorical and splined variable following multiple imputation.
My exposure var is C3spline (a restricted cubic spline with 3 knots), which is interacted with (tumour) grade, a 3 level categorical variable, while the binary outcome var is surgery.
The following works fine using complete case analysis;
However trying to do the same thing with multiply imputed data and mi test produces the following error message;
Your advice on this would be greatly appreciated.
I would like to perform a Wald test for the significance of an interaction between a categorical and splined variable following multiple imputation.
My exposure var is C3spline (a restricted cubic spline with 3 knots), which is interacted with (tumour) grade, a 3 level categorical variable, while the binary outcome var is surgery.
The following works fine using complete case analysis;
Code:
poisson surg c.c3spline*##i.grade, vce(robust) irr test 1.grade#c.c3spline1=1.grade#c.c3spline2=2.grade#c.c3spline1=2.grade#c.c3spline2=3.grade#c.c3spline1=3.grade#c.c3spline2=0
Code:
mi estimate, eform: poisson surg c.c3spline*##i.grade, vce(robust) mi test 1.grade#c.c3spline1=1.grade#c.c3spline2=2.grade#c.c3spline1=2.grade#c.c3spline2=3.grade#c.c3spline1=3.grade#c.c3spline2=0 =exp not allowed
Comment