I have an issue implementing poly function in R. Following are my variables.
X.des.e = three continuous variables
X.des.detection = two continuous variables
model = glm(Pres ~ poly(X.data,degree = 2, raw = TRUE ) + (X.data2), family = poisson(), weights = p.wt)
To get predictions I use
X.data=cbind(X.data,X.data2) predictions = predict(model, newdata=X.data, response=TRUE)
However, if the values of
X.data set to its minimal (or to any other value)and do predictions to this new dataset, but original predictions won't change. Any suggestion?