Skip to content
Back to formatted view

Raw Message

Message-ID: <e3bd274f-ef5e-4012-97fd-067ffcca22d5@p33g2000vbn.googlegroups.com>
Date: 2009-11-30T15:25:50Z
From: Diego Bellisai
Subject: rpart: how to assign observations to nodes in regression trees

Hi,
I am building a regression tree (method=anova) by using rpart package
and as a final result I get the final leaves characterized by
different means and standard deviations for the dependent variable.
However, differently from the classification tree for categorical
variables I cannot find a way to assign each observation to a leaf,
i.e. I can find no frame whcih contains the observation id coupled to
the leaf id. I also cannot found where the leaves id are stored.
Is there someone which can help me?
Regards, Diego.