Displaying 1 result from an estimated 1 matches for "allvarsrec".
2013 Sep 30
1
predictions in nlme without fixed covariantes
...= test.data)
sum(abs(test.data$Fitted - test.data$Fitted.Newdata))
#new version
asOneFormula <-
## Constructs a linear formula with all the variables used in a
## list of formulas, except for the names in omit
function(..., omit = c(".", "pi"))
{
names <- unique(allVarsRec((list(...))))
names <- names[is.na(match(names, omit))]
if (length(names)) {
eval(parse(text = paste("~", paste(names, collapse = "+")))[[1]])
} else {
~ 1 #this was NULL
}
}
sessionInfo()
R Under development (unstable) (2013-08-24 r63687)
Platform: i386-w6...