Questions tagged [ctree]

52 questions
1
vote
1 answer

partikit predict() returns less rows than input data with missing predictor values

I'm having a problem with partikit weighted conditional tree models trained on data with missing values. I'm manually creating a bagged tree model by giving different integer weights to observations at each cycle. But when I used the bootstrapped…
Bakaburg
  • 3,165
  • 4
  • 32
  • 64
1
vote
1 answer

Obtaining full path from leaf to root for each terminal node with ctree from partykit

Im a currently working with ctree from R package "partykit" and I was wondering if there is a way to obtain the full path from terminal nodes to root. I would like to have for each leaf the full path to the root expressed as vectors containing the…
ChrisPol
  • 13
  • 3
1
vote
2 answers

How to plot the restults of ctree in grid?

The results of the plot can be normally arranged in grids. I currently have an issue by plotting the results of the ctree function from the party package in a grid. This question is a duplicate of a question from 6 years and 8 months ago (Plot of…
user9842914
1
vote
2 answers

R partykit::ctree() how to break tie in selecting splitting variable of identical p-value

For a node x in partykit::ctree object, I use the following lines to get the splitting variables on the node: k=info_node(x) names(k$p.value) However, a splitting variables of a node returned by this code is different from the one on the tree…
blueskyddd
  • 431
  • 4
  • 12
1
vote
2 answers

Process finished with exit code -1073741819 (0xC0000005) in PyCharm, RESTART: Shell in IDLE, and closes console

I'm trying to connect c-TreeSQL using Python. I know I have the correct driver because I can connect using George Poulose's Query Tool I have tried these variations and each one has crashed; import pyodbc ## Instructions from…
1
vote
1 answer

For my data insertion method how do I check that the values from the pulled data from the database are being passed correctly or if at all?

Okay so from my previous question this is one iteration of how I am pulling data from the SQL Server and then inserting that same data into CtreeACE where the table is already setup for the values to be stored in there. When I run the code I…
1
vote
1 answer

What is wrong with the syntax of this SQL statement I am using to create a table?

I keep running the code/debugger and even set break points so I can step through the code and haven't been able to find where what the syntax error is I know its within this C# method for creating a new table in the c-tree database. Here's the code:…
1
vote
0 answers

C-Tree vs R-Tree for circular range query

Why is it better to have a circular range query answered with an already constructed C-tree than an already constructed R-tree? (Assuming I'm correct). It seems to be more complicated to calculate the intersection of a rectangle and a circle than a…
user9496874
1
vote
2 answers

Need Ctree Faircom connection string for Tosca Automation tool

We are trying to establish connection between Tosca and ctree faircom database but it fails to establish the connection. Getting the following error message: 'Could not establish a connection using "connection string: DRIVER=CTREE ODBC Driver; …
Arul S
  • 13
  • 4
1
vote
1 answer

How do I create an index using the FairCom c-treeACE CTDB API?

Here is my code based on the CTDB tutorial. #include #include #include "ctdbsdk.h" /* c-tree headers */ #define END_OF_FILE INOT_ERR /* INOT_ERR is ctree's 101 error. See cterrc.h */ CTHANDLE hSession; CTHANDLE…
Ray Hulha
  • 10,701
  • 5
  • 53
  • 53
0
votes
1 answer

Partykit CTREE question: How to subset observations within each terminal node (including variables not part of CTREE)

I would like a bit of help with my code. This is my first time posting, so please excuse the length. Overview: I have conducted a CTREE analysis to identify certain intersections associated with a particular outcome. Within my CTREE, I only used a…
0
votes
1 answer

Accessing variables in a REEMctree model

In a simulation study, I'm using the REEMctree model provided by Fu & Simonoff (2015). They created a function with which one can fit REEMctree models. The function creates an object in which I'd like to search for every variable which has been…
Linus
  • 41
  • 5
0
votes
0 answers

What is the `tuneLength` parameter in `caret`'s `train` function for tuning a conditional inference tree model?

I'm trying to apply the caret package to my conditional inference tree model, as I need to tune the parameters for said model. I can see what the other options for the train function refer to, but I was wondering, what is tuneLength ? I have tried…
Kiwi
  • 11
  • 3
0
votes
1 answer

Bootstrapping and recursive partitioning analysis with ctree

I am currently struggling with recursiving partition and bagging/bootstrapping of some data. As the data is confidential I have provided a reproducible example using the "GBSG2" data. In essense I am currently trying to reproduce an article recently…
0
votes
0 answers

Does re-labelling categorical variables change conditional inference tree result in partykit?

I'm using the ctree function from partykit from my analysis. My ctree contain all binary/categorical variables. When I change the value labels of the binary categorical variables, I end up getting a different ctree diagram. Initial…
Bisola
  • 21
  • 3