filter.unicart {SubgrpID}R Documentation

filter.unicart

Description

rpart filtering

Usage

filter.unicart(
  data,
  type,
  yvar,
  xvars,
  censorvar,
  trtvar,
  trtref = 1,
  pre.filter = length(xvars)
)

Arguments

data

input data frame

type

"c" continuous; "s" survival; "b" binary

yvar

response variable name

xvars

covariates variable name

censorvar

censoring variable name 1:event; 0: censor.

trtvar

treatment variable name

trtref

code for treatment arm

pre.filter

NULL, no prefiltering conducted;"opt", optimized number of predictors selected; An integer: min(opt, integer) of predictors selected

Details

rpart filtering (only for prognostic case)

Value

selected covariates after rpart filtering


[Package SubgrpID version 0.12 Index]