Learn R Programming

guess (version 0.7.0)

cross_sectional_learning: Cross-sectional learning estimate

Description

Estimates learning as the difference in logit scores between post and pre. This ignores the transition structure that the LCA model uses.

Usage

cross_sectional_learning(
  pre_test,
  pst_test,
  na_as = c("dk", "missing"),
  missing_action = c("omit", "error")
)

Value

numeric vector of learning scores (post - pre)

Arguments

pre_test

data.frame of pre-test responses

pst_test

data.frame of post-test responses

na_as

classification of NA responses

missing_action

structural missingness handling

Examples

Run this code
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)

Run the code above in your browser using DataLab