CoOL_6_dendrogram: 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
number_of_subgroups
The number of sub-groups chosen (Visual inspection is necessary).
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
Run this code# NOT RUN {
#See the example under CoOL_0_working_example
# }
Run the code above in your browser using DataLab