Written by: Josh Rosenberg
Primary Source: Joshua M. Rosenberg – February 17, 2017
I’m excited to share that
prcr (0.1.0), an R package for person-centered analysis, is now available on CRAN via
Person-centered analyses focus on clusters, or profiles, of observations, and their change over time or differences across factors.
The package is designed to be “low threshold but high ceiling”, in that you can do all of the analysis with one function,
create_profiles(df, n_clusters), where
data.frame of the variables to cluster, and
n_clusters is the specified number of clusters.
If you look at
?create_profiles(), there are a lot of other options, from whether to center / scale the data (with
to_center), to the distance metric and linkage method. The function also outputs all of the information from the clustering, so you can extract the dendrogram from the hierarchical clustering, for example.
A brief vignette / tutorial using built-in data is here.
Latest posts by Josh Rosenberg (see all)
- In what months are educational psychology jobs posted? An update! - July 9, 2018
- Evolution of a (data) visualization - June 28, 2018
- Learning R (for data analysis and data science): Where to start - June 8, 2018