feature.selected: Features which are used to build a tree

Description Usage Arguments Details Value Examples

View source: R/feature.selected.R

Description

The name of covariates which use to partition the covariate space.

Usage

1

Arguments

tree

:Tree structure made by getTree() function

Details

The sequence only contain unique name(Only count one time even the single covariate use to split twice or more)

Value

An array of characters which is the name of those covariate used in the tree

Examples

1
2
3
4
5
6
7
data(Lung,package="compound.Cox")
train_Lung=Lung[which(Lung[,"train"]==TRUE),] #select training data
t.vec=train_Lung[,1]
d.vec=train_Lung[,2]
x.mat=train_Lung[,-c(1,2,3)]
res=uni.tree(t.vec,d.vec,x.mat,P.value=0.01,d0=0.01,S.plot=FALSE,score=TRUE)
feature.selected(res)

lichkeam/uni.survival.tree documentation built on Dec. 21, 2021, 10:46 a.m.