Skip to content
Prev 262198 / 398502 Next

Decision Trees /Decision Analysis with R?

It is difficult for someone from a statistical frame of mind to understand
what this is about --- you need to think a bit differently. It is mostly a
simulation and decision analysis, with some use of statistical functions to
draw random samples to simulate the fact that outcome of interest can take
any value from a known or unknown distribution. For example, you may be
comparing two interventions and a do-nothing decision to improve some health
outcome of interest. The decision maker is interested in *relative*
effectiveness and costs of the interventions to improve the outcome of
interest. You have results from published literature that you can use as
inputs into a simulation exercise to compare relative costs and
benefits/effectiveness of the three options. A small decision tree can be
easily simulated in a spreadsheet; for long trees with many decision nodes
it is useful to have a specialized software. There are some Excel plugins
that are sold about $100. Others are more expensive.

I think R is not well suited for this kind of work. A decision analysis
package in R may require user to write code like the one used in LaTeX or
related programs (Metapost) to draw graphs of trees (e.g. complicated
organizational trees, or hierarchical trees). However, in such a package
there can be useful outputs, measures and graphs generated by R using code
that may already exist for other packages.

Look up journal "Medical Decision Making" to know what is being discussed.
This method is used extensively in medicine and public health to study
decisions. It even uses MCMC, though with a different flavor --- it may even
be a different kind of food.

Anupam.
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Jonathan Daily
Sent: Wednesday, June 08, 2011 7:47 PM
To: stefan.duke at gmail.com
Cc: r-help at r-project.org
Subject: Re: [R] Decision Trees /Decision Analysis with R?

So TreeAge fits models but won't predict from them? That seems like bizarre
behavior. I suppose I would recommend, then, looking at the source code from
the aforementioned packages for how they store their split data. It sounds
like you would have to write code to hack TreeAge outputs into another
packages' format (e.g. look at ?rpart.object).

Sorry I couldn't help more,
Jon

On Wed, Jun 8, 2011 at 9:47 AM, stefan.duke at gmail.com
<stefan.duke at gmail.com> wrote:
wrote:
payoff).
--
===============================================
Jon Daily
Technician
===============================================
#!/usr/bin/env outside
# It's great, trust me.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.