Hello,
This is my first time addressing such a big audience so apologies in
advance in case I fail to formulate this question.
I am working with 13 species of trees, and the data I have are:
1 continuous (phenolic concentration in xylem and in phloem) and 2
categorical variables: lineage (3 subclades) and habitat (fire and non
fire).
I am trying to see how species can be splitted 'objectively' based on
these variables. I tried to do a regression tree using the rpart
library, but repeatedly got the following answer, even when I tried to
run it using ONLY the categorical variables:
> plot(fit, compress=TRUE)
Error in plot.rpart(fit, compress = TRUE) :
fit is not a tree, just a root
Can anyone please help me think about this?
Many thanks,
claudia romero
question regression trees
4 messages · Claudia Romero, Wensui Liu, Darin A. England +1 more
with seeing more code and output, i guess your tree fails to grow.
On 2/28/07, Claudia Romero <cromero at botany.ufl.edu> wrote:
Hello, This is my first time addressing such a big audience so apologies in advance in case I fail to formulate this question. I am working with 13 species of trees, and the data I have are: 1 continuous (phenolic concentration in xylem and in phloem) and 2 categorical variables: lineage (3 subclades) and habitat (fire and non fire). I am trying to see how species can be splitted 'objectively' based on these variables. I tried to do a regression tree using the rpart library, but repeatedly got the following answer, even when I tried to run it using ONLY the categorical variables:
> plot(fit, compress=TRUE)
Error in plot.rpart(fit, compress = TRUE) :
fit is not a tree, just a root
Can anyone please help me think about this?
Many thanks,
claudia romero
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog)
Claudia, Can you send us the actual call you are making to rpart()? The call to plot() doesn't really help. Darin
On Wed, Feb 28, 2007 at 11:53:45AM -0500, Wensui Liu wrote:
with seeing more code and output, i guess your tree fails to grow. On 2/28/07, Claudia Romero <cromero at botany.ufl.edu> wrote:
Hello, This is my first time addressing such a big audience so apologies in advance in case I fail to formulate this question. I am working with 13 species of trees, and the data I have are: 1 continuous (phenolic concentration in xylem and in phloem) and 2 categorical variables: lineage (3 subclades) and habitat (fire and non fire). I am trying to see how species can be splitted 'objectively' based on these variables. I tried to do a regression tree using the rpart library, but repeatedly got the following answer, even when I tried to run it using ONLY the categorical variables:
> plot(fit, compress=TRUE)
Error in plot.rpart(fit, compress = TRUE) :
fit is not a tree, just a root
Can anyone please help me think about this?
Many thanks,
claudia romero
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog)
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070228/20a4350d/attachment.pl