knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

prcr

prcr is an R package for person-centered analysis. Person-centered analyses focus on clusters, or profiles, of observations, and their change over time or differences across factors. See Bergman and El-Khouri (1999) for a description of the analytic approach. See Corpus and Wormington (2014) for an example of person-centered analysis in psychology and education.

Installation

You can install the development version of prcr (v. 0.2.0) from Github with:

# install.packages("devtools")
devtools::install_github("jrosen48/prcr")

You can install prcr from CRAN (v. 0.1.5) with:

install.packages("prcr")

Example

This is a basic example using the built-in dataset pisaUSA15:

devtools::load_all(".")
library(prcr)
df <- pisaUSA15
m3 <- create_profiles_cluster(df, broad_interest, enjoyment, instrumental_mot, self_efficacy, n_profiles = 3)
plot_profiles(m3, to_center = T)

Other functions include those for carrying out comparing r-squared values and perfomring cross-validation. These are documented in both the manual and vignette for the CRAN release and their versions in the in-development version will be documented prior to the CRAN release.

Vignettes

See examples of use of prcr in the vignettes.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct available here

Latent Profile Analyis (LPA)?

This package is being developed along with its sister project, tidyLPA, which makes it easy to carry out Latent Profile Analysis by providing an interface to the MCLUST package. More information about tidyLPA is available here.



jrosen48/prcr documentation built on Feb. 9, 2020, 5:15 p.m.