wg2ws_category_score: Simulate WS category score from given WG score

View source: R/wg2ws_category_score.R

wg2ws_category_scoreR 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 category and n. Includes Sounds and Connecting Words.

age

(Optional). Age in months. If unset, models not including age are used

WG_total

NA/numeric: In the case of ⁠in/inside⁠, the WG score model can be off-by-one. Out of so many items, this is negligible, but can be set explicitly here.

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. \Sexpr[results=rd]{tools:::Rd_expr_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)

cdiWG2WS documentation built on June 17, 2025, 9:10 a.m.