s-news
[Top] [All Lists]

[S] transcan()-error message

To: SPLUS-Diskussionsliste <s-news@wubios.wustl.edu>
Subject: [S] transcan()-error message
From: Matthias Richard <richard@psyres-stuttgart.de>
Date: Tue, 30 May 2000 13:18:17 +0200 (MET DST)
Sender: owner-s-news@wubios.wustl.edu

Hello everybody!

I use transcan() to impute missing values in my set
of predictors, but I keep getting an error message:

--------------------------------------------
Convergence criterion: Error in
   "%*%.default" (cbind(1,R[[i]..:
   Number of columns of x should be the same
   as number of rows of y
Dumped
--------------------------------------------

transcan is called by:
xan<- transcan(as.matrix(imp.anpred), method="canonical",
           asis=c("VOMIT",... , "DISRUPT"),
    categorical=c("TYPE.AN", "AMENO"),
imputed=T, impcat="score",n.impute=5, data=imp.anpred)

'imp.anpred' is the data frame with the covariates only, none of the
variables are defined as factors.

I have a set of 30 predictors. Everything works fine until
I enter a (binary) variable in categorical=c() I get
the error message above.  I tried to put a variable with
three categories into categorical=(), which I had before in
asis=() - and this did not work too.

Is there anything I am doing wrong here? Or is it possible
that the data may contain too many NAs (some variables have
20%)?
Any ideas, what is going on here?

(Pentium I PC, 133Mhz, WIN95, 64MB memory)

1.000.000 thanks in advance!!!

Matthias

----------------------------------------
Matthias Richard (doctoral candidate)

Center for Research on Psychotherapy
Christian-Belser-Str. 79a
70593 Suttgart
Germany
email: richard@psyres-stuttgart.de
telephone: ++49-711-6781-408
http://www.psyres-stuttgart.de

COST Action B6:
'Efficient Psychotherapy of Eating Disorders'
(COoperation of Science and Technology in the European Union)
-----------------------------------------

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>