I am running a mixed model on multiple imputed data and would like to extract the results via r(table) for reporting. I am not getting r(table) outputted however. This is different to other commands, eg regress, or when running mixed without muliple imputation. Below is a reproducible example (I am running v18.0 on Mac osx).
Does anyone know if this an ommision in Stata or a feature due to some quirk of combining multiple imputation and mixed models?
Does anyone know if this an ommision in Stata or a feature due to some quirk of combining multiple imputation and mixed models?
Code:
version 18.0 clear set obs 10000 gen x = rnormal(0,1) gen cluster = round(_n/1000) gen y = rnormal(0,1) + x + cluster replace x = . if _n < 1000 mi set wide mi register imputed y x mi impute mvn y x, add(5) regress y x mat list r(table) // shows a table mi estimate: regress y x mat list r(table) // shows a table mixed y x || cluster: mat list r(table) // shows a table mi estimate: mixed y x || cluster: mat list r(table) // error: matrix r(table) not found return list // an empty return
Comment