I am running a logistic model on multiply-imputed data, and one of the covariates I include in the model has multiple categories. The Stata output after running the model produces coefficients and significance values for each category, but I would like to obtain a p value for the covariate as a whole. I have previously used the contrast command which has worked well in non-mi data, but this appears not to work on mi data, as with the code below. Any advice on how I can do this?
Error code is produced: "requested action not valid after most recent estimation command"
Many thanks in advance
Code:
mi estimate: logit outcome variable_a variable_b contrast variable_b
Many thanks in advance
Comment