fit_aoa | R Documentation |
For each item in the input data, estimate its age of acquisition as the earliest age (in months) at which the proportion of children who understand/produce the item is greater than some threshold. The proportions used can be empirical or first smoothed by a model.
fit_aoa(
instrument_data,
measure = "produces",
method = "glm",
proportion = 0.5,
age_min = min(instrument_data$age, na.rm = TRUE),
age_max = max(instrument_data$age, na.rm = TRUE)
)
instrument_data |
A data frame returned by |
measure |
One of "produces" or "understands" (defaults to "produces"). |
method |
A string indicating which smoothing method to use:
|
proportion |
A number between 0 and 1 indicating threshold proportion of children. |
age_min |
The minimum age to allow for an age of acquisition. Defaults
to the minimum age in |
age_max |
The maximum age to allow for an age of acquisition. Defaults
to the maximum age in |
A data frame where every row is an item, the item-level columns from
the input data are preserved, and the aoa
column contains the age of
acquisition estimates.
eng_ws_data <- get_instrument_data(language = "English (American)",
form = "WS",
items = c("item_1", "item_42"),
administration_info = TRUE)
if (!is.null(eng_ws_data)) eng_ws_aoa <- fit_aoa(eng_ws_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.