search for: centercall

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

2012 Jan 03
1
returning information from functions via attributes rather than return list
...ric 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=FALSE, centerContrasts = F){ UseMethod("mea...