Pooled Mean Matching MICE #524
MikeDereviankin
started this conversation in
Missing data methodology
Replies: 1 comment
-
Chapter 5 in https://dspace.library.uu.nl/bitstream/handle/1874/308699/vink.pdf studies a related problem. Vink proposes predictive ratio matching to divide the remainder of a sum. If it is sensible to organise your thee observations per person within one row, then you probably could use Vink's approach right away. Be aware though that there is no procedure in If it is not sensible to re-organise (e.g. when different persons have different numbers of observations) I don't think there is a good solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For MICE imputations I need to constrict the predictions so that the predicted values will have the same mean (which is a measured value). The situation is we are dealing with mean blood serum samples (individual blood samples are pooled together) where we have measured values, which are representative of the mean of those individuals. I am trying to predict what the concentration of x was in those individuals based on the measured mean and covariate data. You'll notice in my dummy dataset that there are 3 individuals (Individual_id) for each pool (Pool_id). So when imputing these values to the individuals we need the average of those 3 individuals to equal the Pool_mean.
How can we constrict the Mice algorithm to still predict based on covariate data, but have the means match exactly (can be any method chose, "cart", in this circumstance)? Could this conceptually be done through a MICE squeeze constraint with inputs from the mean?
The code is below:
I know that we can constraint mice using a post process and maybe a custom function like the vec_squeeze below. However, I need to constraint the values based on a mean. How could I update this function to create this?
vec_squeeze <- function(x, bounds) { stopifnot(length(x) == nrow(bounds)) pmin(pmax(x, bounds[,1]), bounds[,2]) }
Beta Was this translation helpful? Give feedback.
All reactions