View source: R/cluster_profiles.R
cluster_profiles | R Documentation |
This function takes a matrix of outcome on exposure predicted values and performs a kmeans clustering to aid in identifying similar profiles
cluster_profiles(wdata, center = TRUE, scale = TRUE, k_count = 20)
wdata |
a data frame of predicted exposure values, such as those derived from the function gam_predict() |
a list of kmeans values, and plots
cluster_profiles()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.