search for: centeredvar

Displaying 1 result from an estimated 1 matches for "centeredvar".

Did you mean: centeredvars
2012 Jan 03
1
returning information from functions via attributes rather than return list
...tributes, and it seems to work. There is a generic function "meanCenter" and a method "meanCenter.default". At the end of meanCenter.default, here's my use (or abuse) of attributes. res <- eval(mc) class(res) <- c("mcreg", class(model)) attr(res, "centeredVars") <- nc attr(res, "centerCall") <- match.call() res I wrote print and summary methods, but other methods that work for lm objects like plot will also work for these new ones. meanCenter <- function(model, centerOnlyInteractors=TRUE, centerDV=FALSE, standardize=FALS...