Displaying 1 result from an estimated 1 matches for "predlist".
2003 Oct 27
2
problem using do.call and substitute for predict.glm using poly()
...anch has 23 'leaves' that
each contain a glm object
But R throws up the following error:
Error in poly(Alk1, degree = 2, coefs = structure(list(alpha =
c(37.7515662650602, :
Object "Alk1" not found
When trying to evaluate the following code:
pAsgn <- paste("predList[[i]][[n]] <- try(predict(resList$Y$X, newdata
= data.frame(X = predData$X), type = 'response', se = TRUE))")
pAsgn <- parse(text = pAsgn)[[1]]
for (i in namY) {
for (n in namX) {
TAsgn <- do.call("substitute", list(pAsgn, list(n = n, i
= i, X = as...