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
|