CoOL_6_dendrogram {CoOL}R Documentation

Dendrogram and sub-groups

Description

Calculates presents a dendrogram coloured by the pre-defined number of sub-groups and provides the vector with sub-groups.

Usage

CoOL_6_dendrogram(
  risk_contributions,
  number_of_subgroups = 3,
  title = "Dendrogram",
  colours = NA,
  ipw = 1
)

Arguments

risk_contributions

The risk contributions.

number_of_subgroups

The number of sub-groups chosen (Visual inspection is necessary).

title

The title of the plot.

colours

Colours indicating each sub-group.

ipw

a vector of weights per observation to allow for inverse probability of censoring weighting to correct for selection bias

Value

A dendrogram illustrating similarities between individuals based on their risk contributions.

Examples

#See the example under CoOL_0_working_example

[Package CoOL version 1.1.2 Index]