[R] Simple decision trees - rpart?

From: Per Bak <perbak_at_tdcadsl.dk>
Date: Mon 01 May 2006 - 00:59:47 EST


Hi,

I'm looking for help on how to use R for making simple decision trees to calculate EMV's, in a manner similar to the method applied in the PrecisionTree add-in for Excel. Say, what is the optimal action, if:

Action 1

Action 2
- could have three out comes with probabilities of 30%, 60% and 10% with values of 200, 30 and -50

I have tried to read up on the 'rpart' functionality, but I think I might be looking in the wrong direction. I would also like to work with continuous distribution functions within the tree.

Can anyone point me in the right direction?

Kind regards,

Per



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon May 01 00:50:47 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 01 May 2006 - 02:09:54 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.