I am imputing the interaction terms in a three way interaction using mi impute chained; I use the Royston approach in which I compute the interaction terms prior to running the imputation and then enter them in the imputation model. The interaction terms consist of a dummy variable (college attainment) and two continuous variables (father's SES and year of birth with the latter variable having no missing values). I have a relatively large N (roughly 7500). For the college dummy, I use (logit, augment), and for the remaining terms, I use (pmm, knn(5)). Even with this specification, I obtain the error "error occurred during imputation of ..." for the logit model of the college dymmy and, using the noisily option, I can see that it is due to perfect prediction from the interaction terms involving the college dummy. I hope this is sufficient for understanding the problem I have. Otherwise, I can provide more detailed information.
Related Posts with perfect prediction issue in mi impute chained with 3-way interaction term
factor variables and time-series operators not allowedHi, I am trying to run the following the codes, but get the error message "factor variables and tim…
Assigning variable values to observations based common values of other variables...I have a data set with 3 variables: one identifies the contract number; one identifies the type of c…
Merging datesHi, I'm trying to merge two dates variables from the same dataset, but I would like to prioritize o…
Is it possible to divide a variable by the mean across individuals for a regression???Hello, is it okay to divide each individual's value of a variable by the mean of the sample and the…
Three way tables using svysetHello, I am using Stata 13 and I have a question regarding three way tables while using complex sur…
Subscribe to:
Post Comments (Atom)
0 Response to perfect prediction issue in mi impute chained with 3-way interaction term
Post a Comment