| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Summary: Specifying a primary split on a regression tree |
| From: | "Wing, Michael" <Michael.Wing@orst.edu> |
| Date: | Wed, 27 Feb 2002 07:35:42 -0800 |
|
My original post: > I'm using S-Plus 2000 (Release 3) to create regression trees and am
I received one response, thank you Greg Snow. Dr. Snow pointed out that I could use the edit.tree function to specify a primary split. He also clarified that burl.tree provides graphical assistance in identifying other primary splits that may also partition the data set effectively. Unfortunately for my needs, the user must also specify the data values to originate the split when using edit.tree. I have nine trees and wish to consider seven primary splits for each tree (to satisfy a manuscript reviewer). I am still searching for a method to force a primary split without having to identify a data value for the split. I include the full response below: This is assuming that you are using the built in tree functions. There is
For example lets assume you are using the dataset fuel.frame and have
> fuel.tree <- tree( Mileage ~ Weight + Disp., data=""> you can examine the effects of different splits by using burl.tree() > tree.screens()
This puts you into an interactive mode with the graph. Click on a split
Now that you have a different split that you want to try, you can use
> fuel.tree2 <- edit.tree(fuel.tree, node=1, var="Weight",
Now, fuel.tree2 is forced to have the first split based on Weight < 2567.5
Also look at identify.tree and browser.tree for other possible helps. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Resource for Simulated Annealing, Olivier FLORES |
|---|---|
| Next by Date: | THANKS/SUMMARY: Forming iteratively 3-way/4-way tables, Ray Haraf |
| Previous by Thread: | Resource for Simulated Annealing, Olivier FLORES |
| Next by Thread: | THANKS/SUMMARY: Forming iteratively 3-way/4-way tables, Ray Haraf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |