Skip to content
Prev 13665 / 20628 Next

Mixed cumulative link modelling - error message

If str() says that bob$rating is of type int, then it is of type int.
Observe:

foo <- data.frame(bar=seq(1,3,1), baz=factor(seq(4,6,1)),
qux=factor(seq(7,9,1), ordered=TRUE))
str(foo)
'data.frame':    3 obs. of  3 variables:
 $ bar: num  1 2 3
 $ baz: Factor w/ 3 levels "4","5","6": 1 2 3
 $ qux: Ord.factor w/ 3 levels "7"<"8"<"9": 1 2 3

you need to do bob$rating <- factor(bob$rating, ordered=TRUE) before
running your model.
-- dan

Daniel McCloy
http://dan.mccloy.info/
Postdoctoral Research Fellow
Institute for Learning and Brain Sciences
University of Washington



On Fri, Aug 21, 2015 at 9:36 AM, Georgina Southon <g.southon at sheffield.ac.uk