Learn R Programming

TSDT (version 1.0.8)

get_cutpoints: get_cutpoints

Description

Accessor method for cutpoints slot in TSDT objects.

Usage

get_cutpoints(.Object, subgroup, subsub = NULL)

# S4 method for TSDT_CutpointDistribution get_cutpoints(.Object, subgroup = character, subsub = NULL)

# S4 method for TSDT get_cutpoints(.Object, subgroup = character, subsub = NULL)

Arguments

.Object

A TSDT object.

subgroup

The anonymized subgroup.

subsub

A particular component of the subgroup to retrieve.

Details

The summary results from TSDT provide a set of 'anonymized' subgroups in a form similar to 'X1<xxxxx'. The variable X1 may have been selected as a splitting variable in several bootstrapped samples. The exact numerical cutpoint for X1 could vary from one sample to the next. The get_cutpoints method returns all the numerical cutpoints associated with this subgroup. If the subgroup is a compound subgroup defined on more than one spliting variable the user can specify the 'subsub' parameter to get the cutpoints associated with a particular component of the subgroup.

Examples

Run this code
if (FALSE) {
example( TSDT )
## You can access the cutpoints slot of a TSDT object directly
ex2@cutpoints

## You can also use the accessor method
get_cutpoints( ex2@cutpoints, subgroup = 'X1

Run the code above in your browser using DataLab