Skip to contents

Replaces the modal (all tables) cut scores of one or more units and recomputes agreement, item review and impact for them, with the descriptor form `object` was estimated with. Each cut's page is the last item at or below the cut score (threshold descriptors, the default) or the first item at or above it (range descriptors).

Usage

# S3 method for class 'ESS'
update(object, ...)

Arguments

object

An object of class `"ESS"`.

...

Named numeric vectors of cut scores, one value per cut in the order of `extract(object, "cutscore")`, named by unit, for example “ update(res, `R1-All` = c(-0.9, 0.4)) “.

Value

An updated object of class `"ESS"`.

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 
#> 

# Set the cuts of grade M1 by hand; agreement, review and impact are updated
res_manual <- update(res, `M1-All` = c(350, 440))
extract(res_manual, "cutscore")
#> $`M1-All`
#> Level1 Level2 
#>    350    440 
#> 
#> $`M2-All`
#> Level1 Level2 
#>  365.8  459.5 
#> 
summary(res_manual)
#>     unit cut_level modal median average agreement weighted_kappa
#> 1 M1-All    Level1 350.0 341.80  351.68     0.733          0.744
#> 2 M1-All    Level2 440.0 433.85  425.90     0.733          0.744
#> 3 M2-All    Level1 365.8 367.45  359.27     0.700          0.727
#> 4 M2-All    Level2 459.5 466.75  452.42     0.700          0.727