main function producing a regression tree using variables from rp_equ to partition the data and fit the model e_equ on each node. Currently only uses data with complete cases.
rpms_zinf(
rp_equ,
data,
weights = ~1,
strata = ~1,
clusters = ~1,
e_equ = ~1,
e_fn = "survLm",
l_fn = NULL,
bin_size = NULL,
gridpts = 3,
perm_reps = 1000L,
pval = 0.05
)
formula containing all variables for partitioning
data.frame that includes variables used in rp_equ, e_equ, and design information
formula or vector of sample weights for each observation
formula or vector of strata labels
formula or vector of cluster labels
formula for modeling data in each node
string name of function to use for modeling (only "survLm" is operational)
loss function (does nothing yet)
numeric minimum number of observations in each node
integer number of middle points to do in search
integer specifying the number of thousands of permuation replications to use to estimate p-value
numeric p-value used to reject null hypothesis in permutation test
object of class "rpms"