I want to perform a correlation analysis with imputed datasets from the original dataset "freetrade" from Amelia package. So first I loaded the data and created multiple datasets with amelia function:
library(Amelia)
data <- freetrade %>%
select(c("country", "tariff", "pop", "gdp.pc", "intresmi", "fiveop", "usheg"))
am <- amelia(data, m=5, idvars=1)
Now I would like to perform a correlation between tarriff, pop and gdp.pc. I absolutely did not find anything on the Internet on how to do it, only for the mice package "micombine.cor()". I tried transforming the imputed data sets "am" into the data type mids, since micombine.cor() only takes the data type mids:
as.mids(am)
but there is only an error called : "Imputation index .imp
not found"
Do you have any methods on how to perform the correlation analysis? I would be very grateful!