Open casallas opened 10 years ago
Apparently the error comes from update
w.clm <- clm2(rating ~ temp + contact, data = wine)
w.clm2 <- clm(rating ~ temp + contact, data = wine, start = coef(w.clm))
clm2
/clmm2
update(w.clm2, location = . ~ . - contact)
yields
Error in clm2(location = rating ~ temp, data = wine, start = coef(w.clm)) :
'start' is not of the correct length
likewise clm
/clmm
w.clm1 <- clm(rating ~ temp + contact, data = wine, start = coef(w.clm))
update(w.clm1, formula = . ~ . - contact)
yields
Error: length of start is 6 should equal 5
With
dropterm
(clm2
/clmm2
)yields
likewise with
drop1
(clm
/clmm
)yields