Skip to content

PMM imputes the same values with completely different predictors #608

Closed Answered by matteobolner
matteobolner asked this question in Q&A
Discussion options

You must be logged in to vote

You are right, without an example it is not clear to understand.
However, I think I already found what was causing the problem.
I was trying to impute values of the column using other columns, some of which also contained missing values.
I wanted to avoid imputing the missing values in these other columns, so in the predictor matrix I set as 0 all predictors except for those in the column corresponding to my column of interest. I didn't understand correctly how to set the predictor matrix, and by doing it this way I set no predictors for my column. Therefore, even when changing the other columns, the predictors were always none.
When setting the predictors on the row only I got NAN values…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matteobolner
Comment options

Answer selected by matteobolner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants