Hi,
I have a dataset with 4 variables and 5372 units. I want to impute missing values using multiple imputation. What is the best way to do that since I'm working with longitudinal data?
Here is an example of how my dataset is organized:
Data <- data.frame(id = c("africa","africa","africa","europa","europa","europa","america","america","america"),year = c(1980,1981,1982,1980,1981,1982,1980,1981,1982),var1=c(1,8,3,NA,1,NA,3,1,NA),var2=c(1,NA,1,NA,1,NA,10,NA,12))
Thanks a lot!