Suppose I am done with analysis. Now I want to conduct sensitivity analysis on MAR. trt is the only variable with missing entries. How do I perform delta shifted sensitivity analysis? The imputation uses logistic regression on trt variable to predict imputed value.
I want to perform delta shifted sensitivity analysis similar to https://www.gerkovink.com/miceVignettes/Sensitivity_analysis/Sensitivity_analysis.html. However, the only way to perform shifted sensitivity analysis here is to somehow access the logistic regression formula and modify it with offset. I have tried the following, but it seems to be wrong.
I can generate the following code for reproducibility. dat is the data used for analysis.
Suppose I am done with analysis. Now I want to conduct sensitivity analysis on MAR. trt is the only variable with missing entries. How do I perform delta shifted sensitivity analysis? The imputation uses logistic regression on trt variable to predict imputed value. I want to perform delta shifted sensitivity analysis similar to https://www.gerkovink.com/miceVignettes/Sensitivity_analysis/Sensitivity_analysis.html. However, the only way to perform shifted sensitivity analysis here is to somehow access the logistic regression formula and modify it with offset. I have tried the following, but it seems to be wrong.
However, mice gives the following output.
Thanks.