Dear all
I have a data set in which both the response variable and some of co-variates are missing. As I read in FAQ, in the presence of missing values in covariates INLA consider it as 0 (If x[i] = NA this means that x[i] is not part of the linear predictor for y[i]. For fixed effects, this is equivalent to x[i]=0.). Also it is mentioned you can formulate a joint model for the data and the covariates in the case of missing covariates, but its not explained how.I am a beginner R user so I just want to know is there any solution to deal with these missing values? I should mention the number of missing values is small for these covariates.
Thanks in advance for answering this question.Best
Mahboubeh
Thank you very much for your prompt and timely response.
I have three complete covariates (G,M,UR) and three incomplete covariates (H,U,P) which have 3 (H), 14 (U) and 33 (P) missing values respectively from the total of 186 observations.
I have two solutions: first forget incomplete covariates and run the model just for complete covariates (The predictive power of this model is not good enough)
Second, I should use additional information of these incomplete covariates to improve the prediction model.
Let me consider each of these incomplete covariates as response. I can appropriately predict H and P according to three complete covariates.
I think it’s not a good job to predict missing values of one covariate and then use predicted values in the final model. I think it’s better to find a joint model to simultaneously deal with missing values of X and Y as I think AMELIA package deal with missing values.
Thanks again.
Best,
Mahboubeh
Dear Finn
I’m not sure I understood you solution correctly. You mean:
1-I
construct a model for missing covariate. For example predict H (missing covariate) via a
spatial model (which explains high percentage of
variation in H and captures significant spatial correlation that it shows).
2- Use the predicted results (fitted values and its distribution) to draw samples from predicted covariates (H).
3- Fit the Final model based on response variable (Y) and simulated values of covariate (H)?
Sorry as mentioned I am a beginner. Please guide me whether I understood your solution correctly.
Thanks a lot.
Mahboubeh
> an email to r-inla-discussion-group+unsub...@googlegroups.com
> <mailto:r-inla-discussion-group+unsubscribe@googlegroups.com>.
> To post to this group, send email to
> r-inla-disc...@googlegroups.com
> <mailto:r-inla-discussion-gr...@googlegroups.com>.
I’m not sure I understood you solution correctly. You mean:
1-I construct a model for missing covariate. For example predict H (missing covariate) via a spatial model (which explains high percentage of variation in H and captures significant spatial correlation that it shows).
2- Use the predicted results (fitted values and its distribution) to draw samples from predicted covariates (H).
3- Fit the Final model based on response variable (Y) and simulated values of covariate (H)?
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion...@googlegroups.com.
To post to this group, send email to r-inla-disc...@googlegroups.com.
Thanks you very much.
My covariates are all continuous. I think I should find a way to jointly
estimate the covariate model and the response model in a way that inla supports.
I used tutorials and worked examples to fit a spatial model for covariate
and response. These tutorials really helped me to formulate my model. Is there
any example or tutorial that can help me to write this model in inla, I mean to
jointly estimate parameters of covariate model and response model?
Best
Mahboubeh
To unsubscribe from this group and stop receiving emails from it, send an email to r-inla-discussion-group+unsub...@googlegroups.com.