Learn R Programming

rpms (version 0.4.0)

end_nodes: end_nodes

Description

Get vector of end-node labels

Usage

end_nodes(t1)

Arguments

t1

rpms object

Value

vector of lables for each end-node.

Examples

Run this code
# NOT RUN {
{
# 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)
}

# }

Run the code above in your browser using DataLab