Dear Sir/Madam:
When I try to set my data as survival time using stset command, it returns a message like shown below. Please advise what is wrong. I am using STATA14.2



. stset $time, id(HH_New_ID) failure($event)

no; data are mi set
Use mi stset to set or query these data; mi stset has the same syntax as stset.

Perhaps you did not type stset. Some commands call stset to obtain information about the
settings. In that case, that command is not appropriate for running directly on mi data. Use mi
extract to select the data on which you want to run the command, which is probably m=0.

r(119);

end of do-file

r(119);

. do "C:\Users\admin\AppData\Local\Temp\STD00000000 .tmp "

. mi stset $time, id(HH_New_ID) failure($event)
_mi_m not found
r(111);