checkMIS | R Documentation |
For a given paired comparisons data set the function calculates and prints the number of missing comparisons and the number of times objects are missing. It can also be used to avoid failure of nonresponse-parameter for nonresponse models in
checkMIS(obj, nitems, MISmodel = "obj", obj.names = NULL, verbose = FALSE)
obj |
dataframe or datafile path/name (like |
nitems |
the number of compared objects, not the number of comparisons (like |
MISmodel |
specifies the nonresponse model, either |
obj.names |
character vector with names for objects. |
verbose |
if |
a logical vector (returned invisibly) specifying for which object/comparison there are NA
responses in the data (obj)
.
pattPC.fit
# no missing NAs in dataset dat4
checkMIS(dat4, nitems = 4, verbose = TRUE)
# generates data set with three items and some missing values in
# comparison (23), column 3, then there are no NAs for object 1
data3 <- dat4[, 1:3]
idx3 <- sample(1:100, 10)
data3[idx3, 3] <- NA
checkMIS(data3, nitems = 3, verbose = TRUE)
# estimate MCAR PC pattern model for data3 with NA indicators alpha1
# cannot be estimated being accommodated by using checkMIS
pattPC.fit(data3, nitems = 3, MISalpha = checkMIS(data3, nitems = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.