| grmtree_long_data | R Documentation |
A synthetic dataset containing responses to the eight MOS-SS emotional
domain items measured at two time points (baseline and one-year follow-up),
together with baseline demographic and clinical covariates. The data are
provided for testing and demonstration of the longitudinal GRMTree
functions (longitudinal_grmtree, rs_characterize)
within the grmtree package.
grmtree_long_data
A tibble with 1,500 rows and 23 variables:
Baseline: someone you can count on to listen when you need to talk (1–5)
Baseline: someone to give you information to help you understand a situation (1–5)
Baseline: someone to give good advice in a crisis (1–5)
Baseline: someone to confide in or talk to about yourself or your problems (1–5)
Baseline: someone whose advice you really want (1–5)
Baseline: someone to share your private worries or fears (1–5)
Baseline: someone to turn to for suggestions about a personal problem (1–5)
Baseline: someone who understands your problems (1–5)
One-year follow-up: listen item (1–5)
One-year follow-up: information item (1–5)
One-year follow-up: crisis advice item (1–5)
One-year follow-up: confide item (1–5)
One-year follow-up: advice wanted item (1–5)
One-year follow-up: fears item (1–5)
One-year follow-up: personal suggestions item (1–5)
One-year follow-up: understand item (1–5)
Sex (Male, Female)
Age in years (numeric)
Residence location (Urban, Rural)
Employment status (Employed, Unemployed)
Education level (Primary/High school, College/University)
Ever-smoker status (Yes, No)
Number of chronic conditions (0–5)
Body mass index (numeric)
The data were simulated from a two-factor longitudinal graded response model.
Response shift was intentionally built into the older subgroup (age > 61):
the MOS_Info item exhibits reprioritization (a discrimination change
over time) and the MOS_Fears item exhibits recalibration (a threshold
change over time). Younger patients show no response shift. As a result,
longitudinal_grmtree produces an age split, and
rs_characterize detects response shift within the older
subgroup. Items are coded 1–5, representing None of the time, A little of
the time, Some of the time, Most of the time, and All of the time,
respectively.
Synthetic data generated from a two-factor longitudinal graded response model for package testing and demonstration. Contains no real patient data.
library(grmtree)
library(dplyr)
# Load the synthetic longitudinal data and take a glimpse
data("grmtree_long_data", package = "grmtree")
glimpse(grmtree_long_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.