| student_esm | R Documentation |
Experience-sampling data on what university students did between prompts when they were not studying. Prompts are nested within students, so the data suit a two-level latent class analysis: each prompt belongs to an activity profile, and students differ in how often their prompts fall in each profile.
student_esm
A data frame with 2582 rows (100 students) and 15 columns:
Integer student identifier, 1 to 100. The nesting unit;
pass it as id.
Integer study day, 0 to 13.
Integer prompt of the day, 1 to 5 among the prompts kept.
Factor, "no" or "yes": spent time with
friends since the previous prompt.
Factor, "no" or "yes": used social media.
Factor, "no" or "yes": watched TV or played
video games.
Factor, "no" or "yes": listened to music.
Factor, "no" or "yes": did sports.
Factor, "no" or "yes": went for a walk.
Factor, "no" or "yes": read.
Factor, "no" or "yes": worked in a part-time
job.
Integer rating of feeling happy, 1 to 7.
Integer rating of feeling relaxed, 1 to 7.
Integer rating of feeling worried, 1 to 7.
Integer rating of feeling exhausted, 1 to 7.
The students answered six prompts a day for fourteen days. At a prompt where the student had not studied since the previous prompt, the questionnaire asked which of eight leisure activities they had done. The study asked these items only at non-study prompts, so the dataset contains those prompts alone. Each row is one answered non-study prompt with all eight activity items and all four affect ratings observed.
The dataset is a subset of the original study: 100 of its students, drawn
with a fixed seed from the students with at least 15 such prompts, with every
such prompt they answered. Each student contributes 15 to 51 prompts (median
24). The eight activity items are categorical indicators; the four affect
ratings are continuous-scored and can be combined with them in a mixed
measurement model. worried has a floor: 49.7% of its ratings are 1, so a
profile of low-worry prompts can have zero variance on it and reach the
min_variance bound.
openESM dataset 0062, deposited by Neubauer and Schmiedek at
Zenodo, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.5281/zenodo.17347974")}, under the Creative Commons
Attribution 4.0 licence (CC-BY 4.0), and retrieved through the openESM
database (https://openesmdata.org). The subset is produced by
data-raw/student-esm.R in the source repository; identifiers are
renumbered and the values are otherwise unchanged.
Neubauer, A. B., & Schmiedek, F. (2024). Approaching academic adjustment on multiple time scales. Zeitschrift für Erziehungswissenschaft, 27, 147–168. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s11618-023-01182-8")}
multilpa() with categorical = for the two-level latent class
model.
head(student_esm)
activities <- c("time_with_friends", "on_social_media", "tv_video_games",
"listened_music", "sports", "walking", "reading",
"part_time_job")
first_week <- subset(student_esm, day <= 6)
lca <- multilpa(first_week, vars = activities, id = "student",
n_profiles = 2, n_group_classes = 2,
categorical = activities, n_starts = 3, seed = 1)
get_results(lca, what = "responses")
get_results(lca, what = "profile_probabilities")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.