Hi!
I have imputed a dataset using MICE and subsequently using the imputed data to fit a logistic regression. In the regression, I would like to have the most frequent category as base. To do this, I tried:
After which I get the following error message:
The help-box tells me this: "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. "
But I can't figure out if that's the solution for me, since I do need it to be done on all of the datasets for the mi estimate: logistic command to work properly and use the most frequent category as base?
Grateful for any help, couldn't find another thread with the same dilemma!
I have imputed a dataset using MICE and subsequently using the imputed data to fit a logistic regression. In the regression, I would like to have the most frequent category as base. To do this, I tried:
Code:
mi fvset base frequent var1 var2 var3 var4
Code:
st_global(): 3300 argument out of range cpchars_wide(): - function returned error <istmt>: - function returned error r(3300);
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. "
But I can't figure out if that's the solution for me, since I do need it to be done on all of the datasets for the mi estimate: logistic command to work properly and use the most frequent category as base?
Grateful for any help, couldn't find another thread with the same dilemma!
Comment