Learn R Programming

rpms (version 0.5.1)

Recursive Partitioning for Modeling Survey Data

Description

Functions to allow users to build and analyze design consistent tree and random forest models using survey data from a complex sample design. The tree model algorithm can fit a linear model to survey data in each node obtained by recursively partitioning the data. The splitting variables and selected splits are obtained using a randomized permutation test procedure which adjusted for complex sample design features used to obtain the data. Likewise the model fitting algorithm produces design-consistent coefficients to any specified least squares linear model between the dependent and independent variables used in the end nodes. The main functions return the resulting binary tree or random forest as an object of "rpms" or "rpms_forest" type. The package also provides methods modeling a "boosted" tree or forest model and a tree model for zero-inflated data as well as a number of functions and methods available for use with these object types.

Copy Link

Version

Install

install.packages('rpms')

Monthly Downloads

366

Version

0.5.1

License

CC0

Maintainer

daniell toth

Last Published

June 25th, 2021

Functions in rpms (0.5.1)

boxes

boxes
grow_rpms

grow_rpms
predict.rpms

predict.rpms
node_plot

node_plot
CE

CE Consumer expenditure data 2015
linearize

linearize
predict.rpms_boost

predict.rpms_boost
end_nodes

end_nodes
in_node

in_node
box_ind

box_ind
predict.rpms_forest

predict.rpms_forest
r2stat

r2
rpms-package

Recursive Partitioning for Modeling Survey Data (rpms)
prune_rpms

prune_rpms
qtree

qtree
survLm_model

Fit a linear model using data collected from a complex sample
rpms_forest

rpms_forest
predict.rpms_proj

predict.rpms_proj
rpms_proj

rpms_proj
rpms

rpms
predict.rpms_zinf

predict.rpms_zinf
print.rpms

print.rpms
rpms_boost

rpms_boost
rpms_zinf

rpms_zinf
print.rpms_forest

print.rpms_forest
print.rpms_zinf

print.rpms_zinf
survLm

survLm