Open hanneoberman opened 1 year ago
Would setting the first row of quickpred(nhanes)
to 0, 1, 1, 1
be appropriate?
I was thinking the other way around: setting the first row of make.predictorMatrix(nhanes)
to 0
s if the user requests it (with an additional argument).
In my opinion, the predictor matrix should reflect which predictor variables are used to impute the target variable. So if there is nothing to impute, there should not be any predictors set. Although I do see how this suggested behaviour should not be the default, e.g. for over-imputing observed data.
The behavior is inconsequential, but might confuse users. I would suggest adding an argument that takes care of this (or change the behaviour altogether, but I don't think that's necessary)
Created on 2023-11-21 with reprex v2.0.2