Learn R Programming

rpms (version 0.2.0)

var_select: var_select

Description

selects variables likely to result in the best split

Usage

var_select(e_equ, data, e_fn = survLm_fit, weights = rep(1, nrow(data)),
  strata = rep(1, nrow(data)), clusters = (1:nrow(data)), X, perm_reps,
  pval)

Arguments

e_equ

formula object of the estimating equation

data

dataframe containing partitioning and estimating variables as well as any used sample design variables

e_fn

error function

weights

the sample weights for each observation

strata

lable of the strata containing the observation

clusters

lable of the clusters containing the observation

X,

string vector containing the names of pontential variables

perm_reps

integer specifying the number of permuations

pval

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

Value

vector of variable names with lowest estimated p-value