Displaying 20 results from an estimated 7000 matches similar to: "how to construct tree under R"
2003 May 17
2
Regression tree
Hi everybody.
I'm a new R user and i've been searching a tool for construction of
regression tree...
I found function "tree()" written by a certain Mr. Ripley, and seems to be
just
what i'm looking for, but when i try to use it in R replies me:"Object not
found".
So I was wandering if I should include one special library or something
like that?
Thanks a lot,
ana
2003 Apr 20
3
how to use apply with a function created by ourselfs...?
Hi.
I'm a real newbie in R, so
I don't know how to apply, a function created by myself...
prediction<-function(a,b)
{
..
}
to a vector...
It doesn't seem to understand
lapply(vector, prediction())...
Anyone can help me?
Thanks in advance,
ana
2005 Mar 18
1
How to show which variables include in plot of classification tree
Dear all
For my research, I am learning classification now.
I was trying some example about classification tree pakages, such as
tree and rpart, for instance,
in Pima.te dataset have 8 variables (include class=type):
library(rpart)
library(datasets)
pima.rpart <- rpart(type ~ npreg+glu+bp+skin+bmi+ped+age,data=Pima.te,
method='class')
plot(pima.rpart, uniform=TRUE)
text(pima.rpart)
2003 Jul 15
1
Tree question
I was under the impression that the tree method (e.g. as implemented in
rpart) was insensitive to monotonic transformations of the dependent
variable. e.g. Breiman Olshen et al. Classification and Regression
Trees state "In a standard data structure [a tree] is invariant under
all monotone transformations of individual ordered varaibles" (p. 57)
However, I get very different results
2003 Apr 12
5
rpart vs. randomForest
Greetings. I'm trying to determine whether to use rpart or randomForest
for a classification tree. Has anybody tested efficacy formally? I've
run both and the confusion matrix for rf beats rpart. I've looking at
the rf help page and am unable to figure out how to extract the tree.
But more than that I'm looking for a more comprehensive user's guide
for randomForest including
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
2008 Mar 11
1
randomForest get tree
All,
What purpose does the getTree function have in Random Forest? Can you graph it
as you can in rpart and can it be interpreted in the same way?
Helen Mills Poulos
Yale School of Forestry
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}}
2001 May 22
1
Surrogate splits for decision trees
Dear R,
Short verse of the question:
Is there R code which will calculate surrogate splits
and/or delta impurity for decision trees at each node?
Long Version:
I have local, legacy code which I use to calculate my decision trees.
I would like to switch to R, but as I understand it surrogate splits
are not implemented.
Surrogate splits and feature ranking are described in Breiman et al
2004 Jul 05
1
how to personalize split function in rpart
Hallo!
I am a student of the Politecnico di Milano (Milan, italy) and I'm working
on CARTs. I'm trying to use the R rpart function with a personalized splitfunction... but I'm not able to do it!
More precisely, I would like to know what is the meaning of the function
'init', 'split' and 'eval' named in the help page.I can't find any answer
in
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.
2003 May 28
2
Ordinal data - Regression Trees & Proportional Odds
I have a data set w/ an ordinal response taking on one of 10 categories.
I am considering using polr to fit a cumulative logits model. I
previously fit the model in SAS (using proc logistic) which provides a
test for the proportional odds assumption (p < 0.001 for the test). Are
there simple diagnostic plots that can be used to look at the validity
of this assumption and possibly help w/
2011 Jan 24
1
How to measure/rank ?variable importance when using rpart?
--- included message ----
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 rpart package)*
---end ----
Consider the following printout from rpart
summary(rpart(time ~ age + ph.ecog + pat.karno, data=lung))
Node number 1: 228 observations,
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
2006 Oct 17
1
Some questions on Rpart algorithm
Hello:
I am using rpart and would like more background on how the splits are made
and how to interpret results - also how to properly use text(.rpart). I have
looked through Venables and Ripley and through the rpart help and still have
some questions. If there is a source (say, Breiman et al) on decision trees
that would clear this all up, please let me know. The questions below
pertain to a
2008 Sep 02
1
rpart: ID3 or C4.5?
Hello,
My question is about the algorithm used behind decision tree package rpart.
It is not clear in the help if the algorithm used is ID3 or C4.5. Someone
has any idea?
Regards.
Sandro.
--
View this message in context: http://www.nabble.com/rpart%3A-ID3-or-C4.5--tp19269303p19269303.html
Sent from the R devel mailing list archive at Nabble.com.
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
2008 Jan 29
2
rpart error when constructing a classification tree
I am trying to make a decision tree using rpart. The function runs very
quickly considering the size of the data (1742, 163). When I call the
summary command I get this:
> summary(bookings.cart)
Call:
rpart(formula = totalRev ~ ., data = bookings, method = "class")
n=1741 (1 observation deleted due to missingness)
CP nsplit rel error
1 0 0 1
Error in yval[, 1] :
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 Oct 24
2
Tree construction in Rpart
Hi,
I have one question:
Does the rpart tree construction have a depth limith for the tree?
Thanks a lot
Hugo
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject