Displaying 1 result from an estimated 1 matches for "modelcv".
Did you mean:
modelc
2012 Apr 20
1
predictOMatic for regression. Please try and advise me
...of variables from the regression formula.
## It is not needed to call this
## directly if one is satisfied with the results from
## predictOMatic
newdataMaker <- function (model = NULL, fl = NULL){
mf <- model.frame(model)
mterms <- terms(model)
mfnames <- colnames(mf)
modelcv <- centralValues(mf)
if (sum(!names(fl) %in% mfnames) > 0) stop(cat(c("Error. The focus
list (fl) requests variables that are not included in the original
model. The names of the variables in the focus list be drawn from this
list: ", mfnames)))
## Consider "padding&qu...