How to achieve class size of each profile when using TidyLPA?

Dear all,

I am new to R programming software. I am now performing LPA using TidyLPA. The model suggests that the 5 -profile option fits best. However, I would like to achieve the class size (number of cases in each profile). I couldn't find the syntax to avhieve this. Also, I would like to investigate the mean difference of each variable among the five profiles. Anyone knows the systax to perform this?

Thanks in advance for any comments and suggestions.

to find the number of cases that were used to build each profile you can do like this :

library(tidyverse)
library(tidyLPA)

#make example 
lpa_1 <- pisaUSA15[1:100, ] %>%
  select(broad_interest, enjoyment, self_efficacy) %>%
  single_imputation() %>%
  estimate_profiles(3) # 3 classes 

# get the numbers per class
get_data(lpa_1) |> group_by(Class) |> count()
# A tibble: 3 x 2
# Groups:   Class [3]
  Class     n
  <dbl> <int>
1     1    36
2     2     3
3     3    61

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.