Estimates learning as the difference in logit scores between post and pre. This ignores the transition structure that the LCA model uses.
numeric vector of learning scores (post - pre)
sim <- simulate_lca(n = 100, gk = 0.30, seed = 123, return_classes = TRUE)
learning_cs <- cross_sectional_learning(sim$pre, sim$post)
cor(learning_cs, sim$learned)
#> [1] 0.7188261