Я использую данные OME из пакета MASS и использую пакет gee, чтобы соответствовать модели.
model <- gee(cbind(Correct, Trials-Correct)~Loud+Age+OME+Noise, id=ID,
data=OME, family=binomial, corstr="exchangeable")
Я пытаюсь использовать прогнозирование, но получаю ошибку
predict(model,newdata=OME[1,])
Error in seq_len(p) : argument must be coercible to non-negative integer
In addition: Warning messages:
1: In predict.lm(object, newdata, se.fit, scale = 1, type = ifelse(type == :
calling predict.lm(<fake-lm-object>) ...
2: In seq_len(p) : first element used of 'length.out' argument
Я знаю для своего примера, я мог бы просто сделать predict(model)[1]
Я просто хочу знать для общего случая.Спасибо!