CoOL_6_number_of_sub_groups | R Documentation |
Calculates the mean distance by several number of subgroups to determine the optimal number of subgroups.
CoOL_6_number_of_sub_groups( risk_contributions, low_number = 1, high_number = 5, ipw = 1, restore_par_options = TRUE )
risk_contributions |
The risk contributions. |
low_number |
The lowest number of subgroups. |
high_number |
The highest number of subgroups. |
ipw |
a vector of weights per observation to allow for inverse probability of censoring weighting to correct for selection bias |
restore_par_options |
Restore par options. |
A plot of the mean distance by the number of subgroups. The mean distance converges when the optimal number of subgroups are found.
#See the example under CoOL_0_working_example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.