Learn R Programming

rpms (version 0.2.0)

split: split

Description

internal split function for RPMS

Usage

split(node, data, e_equ, e_fn = survLm, l_fn, X, weights, strata, clusters,
  bin_size, perm_reps, pval)

Arguments

node

is an integer label of the node

data

this is the data

e_equ

is the estimating equation used to model the data in each node

e_fn

is the function that should be used to fit the model in each node. The function should

l_fn

function taking a numeric vector and returning the estimated loss

X

vector of string names for variables to consider for splitting

weights

the sample weights for each observation

strata

lable of the strata containing the observation

clusters

lable of the clusters containing the observation

bin_size

integer specifying the minimum number of observations each node must contain

perm_reps

integer specifying the number of permuations

pval

numeric p-value used to reject null hypothesis in permutation test

Value

list containing split information