Extract tables from an ESS result
extract.ESS.RdExtract tables from an ESS result
Arguments
- x
An object of class `"ESS"` returned by [emstans()].
- ...
Not used.
- what
Which results: `"cutscore"` (modal cut scores per unit, named by the level each cut opens), `"individual"` (panelist, modal, median and average cuts), `"detailed"` (agreement and crosstabs), `"summary"` (impact data), `"review"` (item review), `"profile"` (inconsistency profiles of the modal results) or `"all"`. Default `"all"`.
Value
A data frame or a named list of data frames. Level columns hold the level labels as ordered factors.
Examples
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")
extract(res, "cutscore")
#> $`M1-All`
#> Level1 Level2
#> 341.2 430.3
#>
#> $`M2-All`
#> Level1 Level2
#> 365.8 459.5
#>
head(extract(res, "review"))
#> unit item_id page aligned operational level_diff location distance
#> 1 M1-All M1_1 1 Level1 Level1 0 302.7 0.0
#> 2 M1-All M1_2 2 Level1 Level1 0 312.4 0.0
#> 3 M1-All M1_3 3 Level1 Level1 0 325.1 0.0
#> 4 M1-All M1_4 4 Level2 Level1 1 335.3 -6.9
#> 5 M1-All M1_5 5 Level2 Level1 1 340.3 -1.9
#> 6 M1-All M1_6 6 Level1 Level1 0 341.2 0.0
#> std_distance status
#> 1 0.0 Consistent
#> 2 0.0 Consistent
#> 3 0.0 Consistent
#> 4 6.9 Inconsistent
#> 5 1.9 Inconsistent
#> 6 0.0 Consistent
head(extract(res, "profile")[["M1-All"]])
#> item_id page location Level1 count Level2 count Level1 weight Level2 weight
#> 1 M1_1 1 302.7 4 18 110.3 1258.7
#> 2 M1_2 2 312.4 3 17 71.5 1084.1
#> 3 M1_3 3 325.1 2 16 33.4 868.2
#> 4 M1_4 4 335.3 3 15 13.0 705.0
#> 5 M1_5 5 340.3 4 14 8.0 630.0
#> 6 M1_6 6 341.2 3 13 8.0 617.4
names(extract(res))
#> [1] "cutscore" "individual" "detailed" "summary" "review"