impute FAMD

20 views
Skip to first unread message

Maya Lebow

unread,
Jul 11, 2021, 4:47:50 AM7/11/21
to FactoMineR users
Hello 
I am new here to FactoMineR. I have a question. I have an error when imupting data

'data.frame': 18 obs. of  18 variables:
comprised of 2chr, 10 factors, and 5 numeric values
>find_missing_data <-estim_ncpFAMD(mypoc)
>find_missing_data
$ncp
[1] 1

$criterion
          0           1           2           3           4           5 
42425553593 31981530182 33868643647 35221067526 35171611741 46559874477 
> complete <-imputeFAMD(mypoc, ncp=1)
Error in apply(tabdisj[, (vec[i] + 1):vec[i + 1]], 1, which.max) : 
  dim(X) must have a positive length

Any help would be appreciated.

Thanks

Francois Husson

unread,
Aug 12, 2021, 4:54:53 AM8/12/21
to factomin...@googlegroups.com
Hello,

In your data set, you must have categorical or quantiative variables only. You have some character variables which must be transformed in factors or suppressed before imputation and FAMD.

FH
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "FactoMineR users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse factominer-use...@googlegroups.com.
Cette discussion peut être lue sur le Web à l'adresse https://groups.google.com/d/msgid/factominer-users/96e830b1-88a5-47b5-b1cd-bfc54a0db4bdn%40googlegroups.com.

--
Francois Husson
Department Statistics & Computer science
L'Institut Agro - AGROCAMPUS OUEST
65 rue de St-Brieuc - 35042 RENNES
Tel: +33 2 23 48 58 86
https://husson.github.io
Reply all
Reply to author
Forward
0 new messages