s-news
[Top] [All Lists]

[S] error when using weights in prune.tree

To: s-news@wubios.wustl.edu
Subject: [S] error when using weights in prune.tree
From: "Oudshoorn K." <K.Oudshoorn@pg.tno.nl>
Date: Fri, 23 Jul 1999 17:04:21 +0200
Sender: owner-s-news@wubios.wustl.edu
Dear S-plussers,

(using S-Plus 4.5, Windows NT)
I am trying to fit a classification tree on the 
dataframe data using
the function tree(). 
When calling tree itself I also use weights (the 
vector data$weights) and created the object data.tr .
Next I wanted to prune the tree, so I called
prune.tree(data.tr).

Now an error occurs:

Error in as.double: Cannot coerce mode call to double: data$weights
Dumped

Am I doing something wrong, is it forbidden to use
weights with prune.tree or is there a mistake 
concerning weights in prune.tree?

Thanks in advance,

Karin Oudshoorn

-----------------------------
Karin Oudshoorn
department of Statistics
TNO Prevention and Health
Pobox 2215
2301 CE Leiden
THe Netherlands
K.Oudshoorn@pg.tno.nl
**********************************************************************
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they   
are addressed. If you have received this email in error please notify 
the sender.
This footnote also confirms that this email message has been swept by 
MIMEsweeper and Dr. Solomon Toolkit for the presence of computer viruses.
**********************************************************************
-----------------------------------------------------------------------
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>
  • [S] error when using weights in prune.tree, Oudshoorn K. <=