View source: R/get_age_equivalent.R
get_age_equivalent | R Documentation |
This function calculates the ages at which a certain percent in the reference population passes the items.
get_age_equivalent( items, pct = c(10, 50, 90), key = NULL, itembank = dscore::builtin_itembank, population = NULL, xunit = c("decimal", "days", "months") )
items |
A character vector containing names of items to be
included into the D-score calculation. Milestone scores are coded
numerically as |
pct |
Numeric vector with requested percentiles (0-100). The
default is |
key |
A string that selects a subset in the itembank that
makes up the key, the set of difficulty
estimates from a fitted Rasch model.
The built-in keys are: |
itembank |
A |
population |
A string describing the population. Currently
supported are |
xunit |
A string specifying the unit in which age is measured
(either |
The function internally defines a scale factor given the key.
Tibble with four columns: item
, d
(D-score),
pct
(percentile), and a
(age-equivalent, in xunit
units).
get_age_equivalent(c("gpagmc018", "gtogmd026", "ddicmm050"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.