`emstans()` estimates cut scores with Embedded Standard Setting (ESS) from panelists’ item-level alignments and item locations. Each grade and round is analysed separately: cut scores are estimated for every panelist and for the modal alignment across panelists (per table and for all tables), and the median and average of the panelist cuts are reported. For the modal result of each grade, the function also reports agreement between aligned and empirical levels, an item review, and impact data.
emstans(
file = NULL,
data = NULL,
...,
grades = NULL,
location = "RP67",
method = c("weight", "count"),
descriptors = c("range", "threshold"),
smooth = FALSE,
by_domain = FALSE,
domains = NULL,
font_size = 14,
digits = 3
)
file:
Path to an EmStanS Excel workbook (sheets Setup, Panelists, Ratings, ItemMetaData, ExamineeMetaData). Either `file` or `data` must be given.
data:
An object from [ess_data()] or [ess_read_excel()], or a list of data frames in the workbook’s sheet order (setup, panelists, ratings, item data, examinee data).
…:
Former argument names, still accepted with a warning. All arguments after `data` must be named in full. Former names: `filePath` (now `file`), `grade` (`grades`), `loc` (`location`), `WESS` (`method`), `gamest` (`smooth`), `domain` and `select_domain` (`by_domain`, `domains`), `targets` (use the `columns` argument of [ess_data()]) and `median` (no longer needed: modal, median and average cuts are always reported).
grades:
Grades to analyse: `NULL` for all, a numeric vector of positions, or a character vector of grade names. Default `NULL`.
location:
Name of the item location column, such as `“RP67”` or `“RP50”`. Default `“RP67”`.
method:
`“weight”` for ESS-Weight (minimise the summed distance of inconsistent items) or `“count”` for ESS-Count (minimise their number). Default `“weight”`.
descriptors:
How the level descriptors relate to the cut scores (Lewis & Cook, 2020). `“range”` (default): each descriptor describes the whole range of a level, so items aligned to a level are expected at or above that level’s cut, and each cut separates the items aligned below a level from those aligned at or above it. `“threshold”`: each descriptor describes students at the threshold of a level, who are expected to answer every item aligned to that level at the response probability, so the cut that opens a level lies at or above the items aligned to it. The two forms place cuts in the same gaps between items but attach them to different levels. With `“threshold”`, the cut between the items aligned to levels j and j + 1 opens level j; examinees below the lowest cut are reported as “Below” the lowest level; and the highest level is an item-only category (“beyond” the highest threshold) that bounds the cut below it but opens no examinee level, so add a level above the highest descriptor if its cut is wanted. An item exactly at a cut belongs to the level above it (range) or below it (threshold). Default `“range”`.
smooth:
If `TRUE`, cut scores are the minima of a GAM-smoothed inconsistency profile instead of the exact minima. Default `FALSE`.
by_domain:
If `TRUE`, each content domain (the item data’s Domain column) is also analysed separately, in addition to all items of each grade. Default `FALSE`.
domains:
With `by_domain = TRUE`, the domains to analyse; `NULL` for all of them.
font_size:
Font size for plots. Default `14`.
digits:
Decimal places in printed tables. Default `3`.
An object of class `“ESS”`. Use [extract()] to get its tables, [report()] for an HTML report, [plot()] for plots, [update()] to set cut scores manually and [bootstrapping()] for bootstrap cut scores.
# Simulated study: 2 grades, 2 tables of 3 panelists, 30 items per grade
set.seed(1)
sim <- generateMockDataSet(ngca = 2, ntable = 2, npanelist = 3,
cor_val = 0.7, nlevel = 3, sdinp = 1, ecinp = 0,
n = 30, 300, 500)
res <- emstans(data = sim, location = "Loc_RP50")
res
#> Embedded Standard Setting
#> method: ESS-Weight | descriptors: range | location: Loc_RP50 | 2 unit(s)
#>
#> Modal cut scores (all tables):
#> M1-All Level2 340.300 Level3 432.200
#> M2-All Level2 360.600 Level3 474.000
#>
#> Use extract() for tables, report() for the full report.
extract(res, "cutscore")
#> $`M1-All`
#> Level2 Level3
#> 340.3 432.2
#>
#> $`M2-All`
#> Level2 Level3
#> 360.6 474.0
#>
# ESS-Count, with each content domain also analysed separately
res_count <- emstans(data = sim, location = "Loc_RP50", method = "count",
by_domain = TRUE)
names(extract(res_count, "cutscore"))
#> [1] "M1-All" "M1-Alg" "M1-Calc" "M1-Geom" "M1-Prob" "M2-All" "M2-Alg"
#> [8] "M2-Calc" "M2-Geom" "M2-Prob"
# Threshold descriptors: each cut lies above the items aligned to the level
# it opens (Lewis & Cook, 2020)
res_thr <- emstans(data = sim, location = "Loc_RP50", descriptors = "threshold")
extract(res_thr, "cutscore")
#> $`M1-All`
#> Level1 Level2
#> 341.2 430.3
#>
#> $`M2-All`
#> Level1 Level2
#> 365.8 459.5
#>
# From an EmStanS Excel workbook (a simulated one ships with the package)
path <- system.file("extdata", "example_study.xlsx", package = "EmStanS")
res_xlsx <- emstans(path, location = "Loc_RP50")
summary(res_xlsx)
#> unit cut_level modal median average agreement weighted_kappa
#> 1 M1-All Level2 328.0 341.65 339.18 0.8 0.748
#> 2 M1-All Level3 420.3 415.80 427.47 0.8 0.748
#> 3 M2-All Level2 384.1 390.30 383.75 0.8 0.767
#> 4 M2-All Level3 466.0 463.00 459.47 0.8 0.767