wg2ws_category_score {cdiWG2WS} | R Documentation |
Simulate WS category score from given WG score
Description
Take 22 WG scores and simulates WS scores for each one.
Usage
wg2ws_category_score(wg_table, age = NA, WG_total = NA, verbose = FALSE)
Arguments
wg_table |
A 22-row table with the columns |
age |
(Optional). Age in months. If unset, models not including age are used |
WG_total |
NA/numeric:
In the case of |
verbose |
T/F: Be verbose. |
Details
This function predicts simulated WS scores for each category score independently. If an age is not supplied, models not using age are used (less accurate than including age).
Value
New scores (data frame of 22 scores)
References
Day, T. K. M., Borovsky, A., Thal, D., & Elison, J. T. (2025). Modeling Longitudinal Trajectories of Word Production With the CDI. Developmental Science, 28(4), e70036. doi:10.1111/desc.70036
Examples
# Create list of words a child knows
words <- c("smile", "old", "chicken (animal)", "breakfast", "snow", "uh oh",
"please", "bad", "bicycle", "moon")
# Create table
wg_categories <- wg2ws_items(words)
# Convert to WS score
ws_categories <- wg2ws_category_score(wg_categories, age = 20)