title: How to fix Erreur : Subscript `AMr1.orig` is a matrix, the data `x.imp[, -possibleFactors][AMr1.orig]` must have size 1
body: <p>I'm trying to run Amelia to impute some missing data on several variables with the following code:</p>
  <p>set.seed(1)
  zz[,c(&quot;id&quot;, &quot;sex&quot;, &quot;team&quot;, &quot;minsSocial&quot;, &quot;satisTravail&quot;, &quot;performance&quot;)] &lt;-
  Amelia::amelia(zz[,c(&quot;id&quot;, &quot;sex&quot;, &quot;team&quot;, &quot;minsSocial&quot;, &quot;satisTravail&quot;, &quot;performance&quot;)],
  m=1, idvars=&quot;id&quot;, noms=c(&quot;sex&quot;,&quot;team&quot;))$imputations$imp1</p>
  <p>Unfortunately, I get this error message :</p>
  <p>Erreur : Subscript <code>AMr1.orig</code> is a matrix, the data <code>x.imp[, -possibleFactors][AMr1.orig]</code> must have size 1.</p>
  <p>Any toughts on where is the problem and how I could fix it? Is it because my data contains values &lt;1?</p>
  <p>Thank you!</p>