I'm trying to estimate direct and indirect effects for a logit model with multiple imputation.

I have code similar to the following

Code:
mi estimate, cmdok: sureg (mediator i.iv control control)(dv i.iv control control mediator)
I get the results for this fine.

I then want to get the indirect effects for the first coded dummy variable from the independent variable, so I run the following code:

Code:
nlcom [mediator]_b[2.iv]*[dv]_b[mediator]
(This is based on the guide provided here: https://stats.idre.ucla.edu/stata/fa...l-iv-in-stata/ )

However, I get the error "last estimates not found."

How can I get nlcom to see the estimates provided by my first line of code?