similar to: Extract node names from BinaryTree in package party

Displaying 20 results from an estimated 4000 matches similar to: "Extract node names from BinaryTree in package party"

2007 Feb 02
1
Problem with party and ordered factors
Hi All, i've got a problem using the ctree function of the party package. I've searched around a lot but couldn't manage it. I've got an ordered factor as response. As far as i know i have to use scores to be able to use this ordered factor. But if i do so i get a tree which predicts all observations as the first level of my ordered factor. In order to test if i did anything
2007 Oct 25
0
adjust labels in plot:terminal_panel {party}
Hi List, I am unsuccessfully trying to beautify barplot outputs from ctree. For example I would like to rotate x-axis lables and resize/change font/type. mtree <- ctree(ME ~ ., data = mammoexp) plot(mtree,terminal_panel=node_barplot(mtree,col="black",fill=NULL, beside=TRUE, ylines=NULL, widths=1,gap=NULL, reverse=FALSE,id=FALSE))
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]],
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
2012 Aug 23
0
party package: ctree - survival data - extracting statistics/predictors
Dear R users, I am trying to apply the analysis processed in a paper, on the data I'm working with. The data is: 80 patients for which I have survival data (time - days, and event - binary), and microarray expression data for 200 genes (predictor continuous variables). My data matrix "data.test" has ncol: 202 and nrow: 80. What I want to do is: - run recursive partitioning on
2007 Feb 02
2
Regression trees with an ordinal response variable
Hi, I am working on a regression tree in Rpart that uses a continuous response variable that is ordered. I read a previous response by Pfr. Ripley to a inquiry regarding the ability of rpart to handle ordinal responses in 2003. At that time rpart was unable to implement an algorithm to handle ordinal responses. Has there been any effort to rectify this in recent years? Thanks! Stacey On
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
2008 Jun 30
1
ctree (party) plot meaning question
I tried to use ctree but am not sure about the meaning of the plot. My.data.ct<-ctree(Resp~., data=My.data) plot(My.data.ct) My data.frame contains 88 explanatory variables (continous,ordered/unordered multistate,count data) and one response with two groups. In the plot are only two variables shown (2 internal nodes) and 3 final nodes. Does it mean that only these two variables show a
2006 Mar 01
1
Problems to get a ctree plot (library party) in a file via jpeg/png
Hello All, I am using library "party" and I have found a curious/strange behaviour when trying to save the output of a ctree in a file via jpeg/png command. If you use: ################ library(party) airq <- subset(airquality, !is.na(Ozone)) airct <- ctree(Ozone ~ ., data = airq) plot(airct, terminal_panel = node_boxplot, drop_terminal = FALSE) ############### you get a
2010 Mar 09
2
ctree - party package multivariate response variables
Hi, I have a problem with ctree of party package. I have data on distribution of more than one species (about 50 species) and I would like identify the relation of this multivariate object (species distribution) with a number of explanatory variables. rs is the name of my dataframe containing the species (columns from 2 to 51) and the explanatory variables (columns 52 and 53). Rows are my
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
2009 Nov 20
1
ctree (party) changing font sizes in plots
When plotting Binary Trees (ctree) from the party package, is there a way to adjust the font sizes of the leaves? require(party) irisct <- ctree(Species ~ ., data = iris) plot(irisct) I want to adjust the font sizes for "Node 2", "Node 5", etc. I'd also like to be able to adjust the font sizes for the x-axis and y-axis labels of the histograms. Thanks,
2011 Sep 08
1
Need formatting help - ctree - plot.party - node_hist
Hi, I am trying to get the terminal nodes of a plot of a ctree object to look nice. Using the iris data I have: library(party) mtree <- ctree(Species ~ ., data=iris) plot(mtree,terminal_panel=node_barplot(mtree)) The terminal nodes don't display the species names because the names are displayed horizontally. ?I would like to reduce the size of the labels and make the terminal nodes
2013 Apr 02
1
ctree (party) - select a specific variable in the first split
Hello, My question is related to ctree() function from the library 'party'. Is there a way to force ctree() to use a specific variable in the first split? I am asking because the first split contains two variables with very similar scores, and choosing the alternative variable would induce a tree somewhat easier to interpret. Thanks, Sal
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 22
0
cforest() and missing values (party package)
Dear mailing list, I am using the cforest() method from the party package to train a randomForest with ten input parameters which sometimes contain "NA"s. The predicted variable is a binary decision. Building the tree works fine without warnings or error messages, but when using the predict() statement for validation, I run in an error: forest <- cforest(V31 ~ V1+V2+V3,
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
2011 Feb 07
5
"Where" command in ctree (party)
Hello, I need to classify (i.e., export a vector with terminal node id's) new cases using a ctree (party package) model based on different cases (learning sample). I tried the where command with the following syntax: > where(tree, newdata=data2) expecting to get terminal nodes of data2 cases based on rules of tree model (data1 as learning sample). However it returned the following error
2006 Jul 14
1
party - ctree() - terminal nodes reference for every obs
Dear R.Users, using ctree() (from "party" library) on a data.frame, I want to append a column with the references for the groups/segments detected. While these nodes are easy readable in output, I need a vector for my obs. Hints? Cheers -- Daniele Medri
2009 Sep 15
0
two party questions: terminal stats and second dataset
Hi there, Question 1: Anybody out there know if there is a way to retrieve a list/table of ctree terminal node stats? If I could get a list containing each terminal node, and distributional stats for the training observations allocated to it (e.g., mean, standard deviation, range), I would be a truly happy camper. I see ways to get predicted values for each observation in the training data, and