fit_vocab_quantiles | R Documentation |
Fit quantiles to vocabulary sizes using quantile regression
fit_vocab_quantiles(vocab_data, measure, group, quantiles = "standard")
vocab_data |
A data frame returned by |
measure |
A column of |
group |
(Optional) A column of |
quantiles |
Either one of "standard" (default), "deciles", "quintiles", "quartiles", "median", or a numeric vector of quantile values. |
A data frame with the columns "language", "form", "age", group
(if specified), "quantile", and measure
, where measure
is the
fit vocabulary value for that quantile at that age.
eng_wg <- get_administration_data(language = "English (American)",
form = "WG",
include_demographic_info = TRUE)
if (!is.null(eng_wg)) {
vocab_quantiles <- fit_vocab_quantiles(eng_wg, production)
vocab_quantiles_sex <- fit_vocab_quantiles(eng_wg, production, sex)
vocab_quartiles <- fit_vocab_quantiles(eng_wg, production, quantiles = "quartiles")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.