Description Usage Arguments Value Examples
View source: R/sfun_rpm_20_04_04.R
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.
1 |
object |
|
newdata |
data.frame |
vector of end_node labels
1 2 3 4 5 6 7 8 9 10 | {
# 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.