options(contrasts = c("contr.treatment", "contr.poly"))
## More manageable data set for less voluminous printing:
(tab26 <- with(soup, table("Product" = PROD, "Response" = SURENESS)))
dimnames(tab26)[[2]] <- c("Sure", "Not Sure", "Guess", "Guess", "Not Sure", "Sure")
dat26 <- expand.grid(sureness = as.factor(1:6), prod = c("Ref", "Test"))
dat26$wghts <- c(t(tab26))
dat26
mN1 <- clm2(sureness ~ 1, nominal = ~prod, data = dat26,
weights = wghts)
predict(mN1)
yields
Error in model.frame.default(Terms, newdata, na.action = function(x) x) :
object is not a matrix
In addition: Warning message:
'newdata' had 72 rows but variable found had 1 row
This only affects the predict branch, not the master
Running the example from the doc:
yields
This only affects the predict branch, not the master