Displaying 20 results from an estimated 8000 matches similar to: "Plot with CART results"
2010 Oct 12
6
Rpart query
Hi,
Being a novice this is my first usage of R.
I am trying to use rpart for building a decision tree in R. And I have the
following dataframe
Outlook Temp Humidity Windy Class
Sunny 75 70 Yes Play
Sunny 80 90 Yes Don't Play
Sunny 85 85 No Don't Play
Sunny 72 95 No Don't Play
Sunny 69 70 No Play
Overcast 72 90 Yes Play
Overcast 83 78 No Play
Overcast 64 65 Yes Play
Overcast 81 75
2008 Jul 21
2
CART and CHAID
Can I say that RPART is a modified algo of CART and PARTY a modified of
CHAID?
Thanks.
----
Chua Siang Li
Consultant - Operations Research
Acceval Pte Ltd
Tel: 6297 8740
Email: siang.li.chua at acceval-intl.com
Website: www.acceval-intl.com
This message and any attachments (the "message"...{{dropped:12}}
2009 Dec 16
2
rcart - classification and regression trees (CART)
Hi,
I am trying to use CART to find an ideal cut-off value for a simple
diagnostic test (ie when the test score is above x, diagnose the condition).
When I put in the model
fit=rpart(outcome ~ predictor1(TB144), method="class", data=data8)
sometimes it gives me a tree with multiple nodes for the same predictor (see
below for example of tree with 1 or multiple nodes). Is there a way
2004 Feb 01
2
CART: rapart vs bagging
Hi,
Is here anyone knows the difference between rapart and bagging when grow a
CART tree?
Thanks
Qin
2002 Sep 25
5
CART vs. Random Forest
According to Dr. Breiman, the RF should be more accurate
method than a single tree. However, the performance of each
method seems to depend on the proprotion of outcome variable
in my case. My data set is a typical classification problem
(predict bad guys). When I ran both of them with different
proportion of outcome variables(there's a criterion to measure
the degree of bad behavior), I
2000 Mar 20
1
CART and the `tree' contrib package
Dear R people,
I was recently reading the book `Classification and Regression Trees' by
Breiman. This book talks about the CART program. Both Splus and R have
implementations of this. However, the book talks about the possibility of
extending the existing `standard' set of questions (for continuous
variables, these are of the form X < c where X is the variable, c some
const) to
2001 May 13
1
CART in R
Can anyone please help me out? I would like to do CART (classification
and regression trees) in R. Is this at all
possible? If so, how?
Thanks,
Ranjan
--
***************************************************************************
Ranjan Maitra, Department of Mathematics and Statistics,
University of Maryland, Baltimore County, Baltimore, MD 21250, USA.
2008 Feb 24
1
what missed ----- CART
Hi all,
Can anyone who is familar with CART tell me what I missed in my tree code?
library (MASS)
myfit <- tree (y ~ x1 + x2 + x3 + x4 )
# tree.screens () # useless
plot(myfit); text (myfit, all= TRUE, cex=0.5, pretty=0)
# tile.tree (myfit, fgl$type) # useless
# close.screen (all= TRUE) # useless
My current tree plot resulted from above code shows as:
2007 Dec 10
1
Multiple Reponse CART Analysis
Dear R friends-
I'm attempting to generate a regression tree with one gradient predictor and multiple responses, trying to test if change in size (turtle.data$Clength) acts as a single predictor of ten multiple diet taxa abundances (prey.data) Neither rpart or mvpart seem to allow me to do multiple responses. (Or if they can, I'm not using the functions properly.)
> library(rpart)
2004 May 07
0
rpart for CART with weights/priors
Hi,
I have a technical question about rpart:
according to Breiman et al. 1984, different costs for misclassification in
CART can be modelled
either by means of modifying the loss matrix or by means of using different
prior probabilities for the classes,
which again should have the same effect as using different weights for the
response classes.
What I tried was this:
library(rpart)
2011 Dec 02
1
CART with rpart
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20111202/b4d64bba/attachment.pl>
2009 Sep 24
0
problem in forcing variables in CART
Hai
Can someone tel me whether it is possible to force in Variables at various
levels of the tree in CART. I have been using RPART for CART which comes
with PARTYKIT package (is this package good for CART or is there any other
better package?). I am facing a problem with the tree it generates, it picks
up variables which don''t make much sense. I want it to pick up few vars at
few
2011 Apr 08
4
Rpart decision tree
Dear useRs:
I try to plot an rpart object but cannot get a nice tree structure plot. I
am using plot.rpart and text.rpart (please see below) but the branches that
connect the nodes overlap the text in the ellipses and rectangles. Is there
a way to get a clean nice tree plot (as in the Rpart Mayo report)? I work
under Windows and use R2.11.1 with rpart version 3.1-46.
Thank you.
Tudor
...
2011 Jan 24
1
How to measure/rank “variable importance” when using rpart?
Hello all,
When building a CART model (specifically classification tree) using rpart,
it is sometimes interesting to know what is the importance of the various
variables introduced to the model.
Thus, my question is: *What common measures exists for ranking/measuring
variable importance of participating variables in a CART model? And how can
this be computed using R (for example, when using the
2001 Jul 12
2
rpart puzzle
I've been using the package rpart with R 1.3.0 for Windows to produce
simple classification trees for some measurement data from paleontological
specimens. Both the rpart documentation and the output confirm that the
program produces splits on continuous data that leave "holes" in the
data. It is probably of little practical importance, but is there a reason
why the binary
2004 Jun 04
1
rpart
Hello everyone,
I'm a newbie to R and to CART so I hope my questions don't seem too stupid.
1.)
My first question concerns the rpart() method. Which method does rpart use in
order to get the best split - entropy impurity, Bayes error (min. error) or Gini
index? Is there a way to make it use the entropy impurity?
The second and third question concern the output of the printcp() function.
2009 May 22
1
bug in rpart?
Greetings,
I checked the Indian diabetes data again and get one tree for the data with
reordered columns and another tree for the original data. I compared these
two trees, the split points for these two trees are exactly the same but the
fitted classes are not the same for some cases. And the misclassification
errors are different too. I know how CART deal with ties --- even we are
using the
2007 Dec 09
1
CART analysis
I would like to know if is it possible implemet a partitioning tree
using a function like rpart, or mvpart, and with formula a glm-object
(as a logistic models) or a robust linear regression (as least sum of
absolute errors).
In this case, the appropriate "method" to use is "mrt"? Or another one?
Thanks,
Anna Maria Paganoni
2010 Jul 15
1
CART with a circular response
Hello all,
Could anyone advise me how can I implement classification and
regression tree analyses for a circular response (angles)?
Is there available R code or I would have to adapt code from "rpart"
or "tree" libraries, which I am not sure would be able to do it?
I would really appreciate any suggestion.
Duarte
2009 May 12
1
questions on rpart (tree changes when rearrange the order of covariates?!)
Greetings,
I am using rpart for classification with "class" method. The test data is
the Indian diabetes data from package mlbench.
I fitted a classification tree firstly using the original data, and then
exchanged the order of Body mass and Plasma glucose which are the
strongest/important variables in the growing phase. The second tree is a
little different from the first one. The