Displaying 20 results from an estimated 716 matches for "rpart".
Did you mean:
part
2004 Oct 13
2
debugging non-visible functions
Hi,
I would like to step-through a non-visible function. but apparently I
don't know enough about namespaces to get that to work:
> methods(predict)
... deleted lines ...
[27] predict.rpart* predict.smooth.spline*
[31] predict.survreg.penal*
Non-visible functions are asterisked
> debug(predict.rpart)
Error: Object "predict.rpart" not found
> getAnywhere("predict.rpart")
A single object matching 'predict.rpart' was found
It...
2008 Jul 22
2
rpart$where and predict.rpart
Hello there. I have fitted a rpart model.
> rpartModel <- rpart(y~., data=data.frame(y=y,x=x),method="class", ....)
and can use rpart$where to find out the terminal nodes that each
observations belongs.
Now, I have a set of new data and used predict.rpart which seems to give
only the predicted va...
2009 Jul 26
3
Question about rpart decision trees (being used to predict customer churn)
Hi,
I am using rpart decision trees to analyze customer churn. I am finding that
the decision trees created are not effective because they are not able to
recognize factors that influence churn. I have created an example situation
below. What do I need to do to for rpart to build a tree with the variable
experience? My...
2018 Aug 14
2
Xenial rpart package on CRAN built with wrong R version?
Hello,
I just upgraded my Ubuntu Xenial system to R 3.5.1 (from 3.4.?) by changing the sources.list entry and doing an "apt-get dist-upgrade". Everything works except loading the rpart package in R:
> library(rpart)
Error: package or namespace load failed for ?rpart?:
package ?rpart? was installed by an R version with different internals; it needs to be reinstalled for use with this R version
> installed.packages()['rpart',]
Pac...
2007 Feb 15
2
Does rpart package have some requirements on the original data set?
Hi,
I am currently studying Decision Trees by using rpart package in R. I
artificially created a data set which includes the dependant variable
(y) and a few independent variables (x1, x2...). The dependant variable
y only comprises 0 and 1. 90% of y are 1 and 10% of y are 0. When I
apply rpart to it, there is no splitting at all.
I am wondering wheth...
2001 Aug 12
2
rpart 3.1.0 bug?
I just updated rpart to the latest version (3.1.0). There are a number of
changes between this and previous versions, and some of the code I've been
using with earlier versions (e.g. 3.0.2) no longer work.
Here is a simple illustration of a problem I'm having with xpred.rpart.
iris.test.rpart<-rpart(iri...
2009 Jun 09
3
rpart - the xval argument in rpart.control and in xpred.rpart
Dear R users,
I'm working with the rpart package and want to evaluate the performance of
user defined split functions.
I have some problems in understanding the meaning of the xval argument in
the two functions rpart.control and xpred.rpart. In the former it is defined
as the number of cross-validations while in the latter it is defin...
2014 Aug 13
1
Request to review a patch for rpart
Dear list
For my work, it would be helpful if rpart worked seamlessly with an
empty model:
library(rpart); rpart(formula=y~0, data=data.frame(y=factor(1:10)))
Currently, an unrelated error (originating from na.rpart) is thrown.
At some point in the near future, I'd like to release a package to CRAN
which uses rpart and relies on that functi...
2003 Aug 15
3
How to reinstall rpart?
After entering ?library(rpart)?, I tried to plot an existing rpart tree, and
got this error message: Error: couldn't find function "plot.rpart".
However, ??plot.rpart? does bring up the help for the function. The same
things occur for text.rpart, although print(my.tree) does work.
So, I tried to re-install rpar...
2002 Mar 13
0
rpart error with 0-frequency factor levels (with partial fix) (PR#1378)
(I'm sending to r-bugs because rpart is one of the recommended packages and
is always installed. I'm also sending it directly to Dr. Ripley, as the
maintainer.)
rpart working as a classifier does not work (produces no splits) when the
class indicator has no instances of one of the factor levels, as long as the
factor level is no...
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...
2004 May 13
2
R 1.9.0 and pred.rpart
I have just upgraded from R 1.7.3 to R 1.9.0 and have found that the
predict function no longer works for rpart:
> predict(hmmm,sim3[1:10,])
Error in predict.rpart(hmmm, sim3[1:10, ]) :
couldn't find function "pred.rpart"
I have re-installed the rpart package to no avail. Any ideas?
Giles Hooker
2006 Aug 09
2
How to draw the decision boundaries for LDA and Rpart object
Hello useR,
Could you please tell me how to draw the decision boundaries in a scatterplot of the original data for a LDA or Rpart object.
For example:
> library(rpart)
>fit.rpart <- rpart(as.factor(group.id)~., data=data.frame(Data) )
How can I draw the cutting lines on the orignial Data?
Or is there any built in functions that can read the rpart object 'fit.rpart' to do that?
Thanks very much in advance...
2003 Jun 02
1
Ploting rpart objects / namespace problems
I've written a small adaptation of the text.rpart function of the rpart
package to better suite my tree presentation needs (I basically left the code
untouched, only changing some numbers relating to label positioning).
When I changed to version 1.7.0 this function stopped working printing the
error :
couldn't find function "rpart...
2011 Jul 29
1
help with predict.rpart
? data=read.table("http://statcourse.com/research/boston.csv", ,
sep=",", header = TRUE)
? library(rpart)
? fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+
PT+B+LSTAT)
predict(fit,data[4,])
plot only reveals part of the tree in contrast to the results on obtains
with CART or C5
-------- Original Message --------
Subject: Re: [R] help with rpart
From: Sarah Goslee <sarah.goslee...
2018 Aug 14
2
Xenial rpart package on CRAN built with wrong R version?
...Aug 2018 at 05:04, Ulrich KELLER <ulrich.keller at uni.lu<mailto:ulrich.keller at uni.lu>> wrote:
Hello,
I just upgraded my Ubuntu Xenial system to R 3.5.1 (from 3.4.?) by changing the sources.list entry and doing an "apt-get dist-upgrade". Everything works except loading the rpart package in R:
What sources.list entry did you use?
> library(rpart)
Error: package or namespace load failed for ?rpart?:
package ?rpart? was installed by an R version with different internals; it needs to be reinstalled for use with this R version
[...]
Package r-cran-rpart was updated though...
2011 Dec 27
0
Using minsplit and unequal weights in rpart
Dear r-help mailing list,
Is there a way to incorporate weights into the minsplit criteria in rpart,
when the weights are uneven? I could not find a way for the minsplit
threshold to take the weights into account, and when the weights are uneven
it becomes an issue, as the following example shows.
My current workaround is to expand the data into one in which each row is
an observation, but that s...
2004 Sep 06
1
rpart problem
Dear all,
I am having some trouble with getting the rpart function to work as expected.
I am trying to use rpart to combine levels of a factor to reduce the number
of levels of that factor. In exploring the code I have noticed that it is
possible for chisq.test to return a statistically significant result whilst
the rpart method returns only the root node...
2006 Mar 07
3
how to use the rpart function?
Hi all,
What parameter do I normally change in the rpart function? How do I set the
"cp" option?
Is there a way to read off error rate directly from the "rpart" function for
training data; I imagine for testing data I have to apply a "predict", but
for training data I guess the error count would be somewhere existing once...
2011 Aug 25
2
rpart: plot without scientific notation
While I'm very pleased with the results I get with rpart and
rpart.plot, I would like to change the scientific notation of the
dependent variable in the plots into integers. Right now all my 5 or
more digit numbers are displayed using scientific notation.
I managed to find this:
http://tolstoy.newcastle.edu.au/R/e8/help/09/12/8423.html
but I do not full...