search for: centerdv

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

Did you mean: center
2012 Jan 03
1
returning information from functions via attributes rather than return list
...)) 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("meanCenter") } meanCenter.default <- function(model, centerOnlyInteractors=TRUE, centerDV=FALSE, standardize=FALSE, centerContrasts = F){ std <- function(x) { if( !is.numeric(x) ){ stop("center.lm tried...