Hello,
I have a question about an error code, and whether or not there are options for working
around it.
Here is the situation:
I have 4 variables (actually 4 classes of variables) that are linear combinations of each
other. Thus, they all cannot be in the imputation model. I am using the "idvars"
argument to hold one of these variables out of the imputation process to avoid the
"error: inv_sympd(): matrix appears to be singular" message, which I think is
related to the fact that these variables are related.
However, when I try to hold one of these variables out of the imputations using the
"idvars" argument, I get the message below:
Amelia Error Code: 32
Transfomations must be mutually exclusive, so one
variable can only be assigned one transformation. You have the
same variable designated for two transformations.
I have been able to get the imputations to run with the following:
1.) Running the imputation with only 3 of 4 the variables
2.) Running the imputation with 3 of the variables included in the imputation, but one
left out using "idvars", and specifying incheck=FALSE
Also, the "idvars" argument works just fine when I hold out two ID variables
from the imputation...so it is only failing when I also add one of these 4 correlated
variables.
The 4 variables I am speaking of are not necessarily important for the imputation process,
but are important for the stats I would like to run down the road on the imputed data
(thus I need them in the final imputed data set). When I put all 4 of the variables into
the "idvars" argument, I get the error related to the number of excluded
variables >> number of variables used for imputation.
Any advice on how to handle this problem is greatly appreciated! Thank you!
All the best regards,
Ryan