Description Usage Arguments Details Value Note Author(s) See Also Examples
Estimates rating category thresholds for msd
given rating scale data, item measures and person measures.
1 |
data |
a numeric matrix of ordinal rating scale data whose entries are integers with missing data set to NA. Rows are persons and columns are items. The ordinal rating scale is assumed to go from the smallest integer to the largest integer in |
items |
a numeric vector of item measures with missing values set to NA (see Details). |
persons |
a numeric vector of person measures with missing values set to NA (see Details). |
The length of items
must equal the number of columns in data
and the length of persons
must equal the number of rows in data
. Neither items
nor persons
can consist of only NA.
A list whose elements are:
thresholds |
a vector of average rating category thresholds used by the persons when rating the items |
threshold_std_errors |
a vector of standard errors for the thresholds |
thresh
is a special case of msd
when item measures and person measures are known.
Chris Bradley (cbradley05@gmail.com)
1 2 3 4 5 6 7 8 9 10 11 | # Using randomly generated values
d <- as.numeric(sample(0:5, 1000, replace = TRUE))
m <- matrix(d, nrow = 50, ncol = 20)
im <- runif(20, -2, 2)
pm <- runif(50, -2, 2)
th1 <- thresh(m, items = im, persons = pm)
# Anchor first 10 item measures and first 10 person measures
im[11:length(im)] <- NA
pm[11:length(pm)] <- NA
th2 <- thresh(m, items = im, persons = pm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.