[18726] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] error when using weights in prune.tree

daemon@ATHENA.MIT.EDU (Oudshoorn K.)
Fri Jul 23 11:10:43 1999

Message-Id: <130D4E7F3518D3119C9600A0C9CFBB7AF004@a00677.pg.tno.nl>
From: "Oudshoorn K." <K.Oudshoorn@pg.tno.nl>
To: s-news@wubios.wustl.edu
Date: Fri, 23 Jul 1999 17:04:21 +0200
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"


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

home help back first fref pref prev next nref lref last post