search for: binarytree

Displaying 11 results from an estimated 11 matches for "binarytree".

Did you mean: binaryref
2011 Oct 06
0
Fwd: Re: Party extract BinaryTree from cforest?
> ---------- Forwarded message ---------- > Date: Wed, 5 Oct 2011 21:09:41 +0000 > From: Chris <christopher.a.hane at gmail.com> > To: r-help at stat.math.ethz.ch > Subject: Re: [R] Party extract BinaryTree from cforest? > > I found an internal workaround to this to support printing and plot type > simple, > > tt<-party:::prettytree(cf at ensemble[[1]], names(cf at data at > get("input"))) >> npt <- new("BinaryTree") >> npt at tree<-tt >&...
2010 Nov 01
0
Extract node names from BinaryTree in package party
Hi there, I need to extract the variable names from all nodes (except the terminal nodes) from a ctree object, e.g. library(party) mammoct <- ctree(ME ~ ., data = mammoexp) plot(mammoct) how can I extract the varnames from node 1 (SYMPT) and node 3 (PB) from the fitted object "mammoct"? Many Thanks, Sven
2011 Dec 30
1
Extracting Information from ctree
I am trying to extract the tree information from the output of ctree. I tried using the documentation from BinaryTree Class {party} but with no success. Any help is appreciated. Thank You -- *David Guy, PhD Flemington, NJ 917-941-5890 Cell 908-237-5107 Home 908-284-0356 Fax* [[alternative HTML version deleted]]
2011 Feb 17
1
missing values in party::ctree
After ctree builds a tree, how would I determine the direction missing values follow by examining the BinaryTree-class object? For instance in the example below Bare.nuclei has 16 missing values and is used for the first split, but the missing values are not listed in either set of factors. (I have the same question for missing values among numeric [non-factor] values, but I assume the answer is similar.)...
2006 Feb 15
1
S3 generics without NS and cleanEx()
...1] sctest.Fstats sctest.efp sctest.formula sctest.gefp sctest.mob* Non-visible functions are asterisked R> R> assign(".oldSearch", search(), env = .CheckExEnv) R> assign(".oldNS", loadedNamespaces(), env = .CheckExEnv) R> cleanEx(); ..nameEx <- "BinaryTree-class" R> R> methods(sctest) [1] sctest.Fstats sctest.efp sctest.formula sctest.gefp R> R> R> proc.time() [1] 1.77 0.01 1.97 0.00 0.00 R>
2010 Nov 15
1
Path to nodes in ctree package party
Hallo list, I'm wondering if there is a way to extract the path to terminal nodes in a BinaryTree object, e.g. ctree, like the function path.rpart in package rpart. Thanks, Sven
2012 Jan 06
1
Please help!! How do I set graphical parameters for ploting ctree()
I'm trying to understand how to set graphical parameters for trees created with the party package.  For example take the following code:   library(party)     data(airquality)     airq <- subset(airquality, !is.na(Ozone))     airct <- ctree(Ozone ~ ., data = airq,                    controls = ctree_control(maxsurrogate = 3))     plot(airct)   My problem is, I've got a ctree that has
2010 Apr 07
1
extracting ctree() output information
Hi, I am new to R and am using the ctree() function to do customer segmentation. I am using the following code to generate the tree: treedata$Response<-factor(treedata$Conversion) fit<-ctree(Response ~ .,controls=ctree_control(mincriterion=0.99,maxdepth=4),data=treedata) plot(fit) print(fit) The variable "Response" above equals 1 if the customer responded to an offering and
2010 Nov 16
2
Plotting an agnes tree with images instead of labels?
Hi, I'd like to plot a tree with images of molecular structures instead of labels (words). I think this is possible because someone who worked in my office before I arrived did this. However I'm not sure if this person made the image manually or plotted it only with R. Thanks in advance for your help. -- View this message in context:
2006 Sep 22
3
how to store recursive results
Hi all, How to store recursive resutls from a function for each step without using global operators <<-? Thanks ahead. Xiaohui Chen Dept. of Statistics UBC, Canada _________________________________________________________________ Don?t waste time standing in line?try shopping online. Visit Sympatico / MSN
2012 Aug 23
0
party package: ctree - survival data - extracting statistics/predictors
...n(data)trafo(data, surv_trafo=logrank_trafo(data, ties.method = "logrank")) ) which works well but as I am not a statistician it is quite confusing and i might not run it properly. My technical problem is that I would like to extract the statistics output from my "test" object (BinaryTree class), i.e. P-value of each of the 200 comparisons (survival data versus each gene): i would like to know which of them can be really correlated to each node of the tree. I tried: test at tree$criterion$statistic but the maximum value of this is 16, so I assume it is not a p-value as such: what i...