search for: dmname

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

Did you mean: d_name
2012 Jan 03
1
returning information from functions via attributes rather than return list
...hasIntercept <- attr(t, "intercept") if (hasIntercept) dm <- dm[ , -1] # removes intercept, column 1 dv <- rdf[ ,names(tmdc)[1]] #tmdc[1] is response variable name dm <- cbind(dv, dm) colnames(dm)[1] <- names(tmdc)[1] #put colname for dv dmnames <- colnames(dm) hasColon <- dmnames[grep(":", dmnames)] dm <- dm[ , -match(hasColon, dmnames)] ##remove vars with colons (lm will recreate) ##Now, standardise the variables that need standardizing for (i in nc) dm[ , i] <- std( dm[, i]) fmla &...