powered by
Estimates reliability across age using a sliding window approach, either at fixed age points or per individual.
reliability_window( data, age_name, item_variables, window_width, window_version = "step", min_agegroup = NULL, max_agegroup = NULL, step_agegroup = 1, complete.obs = TRUE )
A data.frame with:
rel: Reliability estimates
rel
age: Corresponding age values
age
window_width: The width of the sliding window
window_width
window_per: Description of age step or observation unit
window_per
This output can be used as the datarel argument in normtable_create().
datarel
normtable_create()
data.frame containing the item scores and age variable.
string. Name of the age variable.
numeric or character vector. Column indices or names of the item variables.
numeric. Width of the sliding window used to group individuals by age.
string. Type of windowing:
"step" (default): Estimate reliability at fixed age intervals.
"step"
"window_per_person": Estimate reliability for each individual.
"window_per_person"
numeric. Minimum age to include. Defaults to the floor of the minimum age in the data.
numeric. Maximum age to include. Defaults to the ceiling of the maximum age in the data.
numeric. Step size between evaluated ages. Used only when window_version = "step".
window_version = "step"
logical. If TRUE (default), uses listwise deletion; if FALSE, uses pairwise deletion.
TRUE
FALSE
heister2024itemnormref
invisible(data("ids_kn_data")) rel_est <- reliability_window( data = ids_kn_data, age_name = "age_years", item_variables = colnames(ids_kn_data), window_width = 2 )
Run the code above in your browser using DataLab