knitr::opts_chunk$set(echo = TRUE, message=F, warning = F)
library(prcr)
library(tidyLPA)

prcr example

d <- pisaUSA15
m3_prcr <- create_profiles_cluster(d, 
                                   broad_interest, enjoyment, self_efficacy,
                                   n_profiles = 3)
plot_profiles(m3_prcr, to_center = TRUE)

tidyLPA example

m3_lpa <- create_profiles_mclust(d, 
                             broad_interest, enjoyment, self_efficacy,
                             n_profiles = 3)

plot_profiles_mclust(m3_lpa, to_center = TRUE)


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