end_nodes {rpms} | R Documentation |
end_nodes
Description
Either a vector of end-node labels for each opbservation in newdata or a vector of the endnodes in the tree model if newdata is not provided.
Usage
end_nodes(object, newdata = NULL)
Arguments
object |
|
newdata |
data.frame |
Value
vector of end_node labels
Examples
{
# model mean of retirement account value for households with reported
# retirment account values > 0 using a binary tree while accounting for
# clusterd data and sample weights.
s1<- which(CE$IRAX > 0)
r1 <-rpms(IRAX~EDUCA+AGE+BLS_URBN, data = CE[s1,], weights=~FINLWT21, clusters=~CID)
end_nodes(r1)
}
[Package rpms version 0.5.1 Index]