get_test_scores
era_pl.get_test_scores(
effect_size=15,
n_students=1000,
n_grades=4,
include_unobservables=False,
random_assignment=False,
seed=None,
)Simulate a panel of student test scores for DiD-style examples.
The returned data include grade, treatment, post indicators, and scores. Setting include_unobservables=True also returns the latent talent and grade-effect components used to generate the observed outcomes.