search for: tmdc

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

Did you mean: tmda
2012 Jan 03
1
returning information from functions via attributes rather than return list
...x) ){ stop("center.lm tried to center a factor variable. No Can Do!") } else { scale(x, center = TRUE, scale = standardize) } } rdf <- get_all_vars(formula(model), model$model) #raw data frame t <- terms(model) tl <- attr(t, "term.labels") tmdc <- attr(t, "dataClasses") ##term model data classes isNumeric <- names(tmdc)[ which(tmdc %in% c("numeric"))] isFac <- names(tmdc)[ which(tmdc %in% c("factor"))] if (tmdc[1] != "numeric") stop("Sorry, DV not a single numeric column")...