search for: lmfunc

Displaying 4 results from an estimated 4 matches for "lmfunc".

Did you mean: vmfunc
2010 Jul 07
3
Large discrepancies in the same object being saved to .RData
...to realise what is actually occurring. Can someone enlighten myself and my colleagues as to why the objects created and evaluated in a function call stack are saved, in some capacity, with the returned object? Cheers, Julian ####################### small simulation from a clean directory lmfunc <- function(loop = 20, add = FALSE, gr = FALSE){ lmlist <- rmlist <- list() set.seed(100) dat <- data.frame(matrix(rnorm(100*100), ncol = 100)) rm <- matrix(rnorm(100000), ncol = 1000) names(dat)[1] <- "y" i <- 1 for(i in 1:loop) { lmlist[[i]...
2010 Jan 02
1
Please help me!!!! Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected
...umns selected In addition: Warning message: In predict.lm(object, x) : prediction from a rank-deficient fit may be misleading I try to that manual example, that is good, my data is wrong. I do not know what reanson? my code is : subsets<-c(1:5,10,15,20,25) ctrl<-rfeControl(functions=lmFuncs, method = "cv", verbose=FALSE,returnResamp="final") lmProfile<-rfe(trainDescr,trainY,sizes=subsets,rfeControl=ctrl) before it, I have do some pre-process and my data is in the attachment. Please help me. thank you! kevin http://n4.nabble.com/file/n996068/...
2011 May 01
0
Dummy variables using rfe in caret for variable selection
...h 3 levels. x <- chlDescr y <- chl #crate dummy variable levels(x$State) <- c("AL","GA","FL") dummy <- model.matrix(~State,x) z <- cbind(dummy, x) #remove State category variable w <- z[,c(-4)] subsets <- c(2:8) ctrl<- rfeControl(functions = lmFuncs, method="cv", verbose=FALSE, returnResamp = "final") lmProfile <- rfe(w, y, sizes = subsets, rfeControl = ctrl) Returns: Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected In addition: Warning message: In predict.lm(object, x) : predicti...
2011 Aug 22
3
Ignoring loadNamespace errors when loading a file
On a Unix machine I ran caret::rfe using the multicore package, and I saved the resulting object using save(lm2, file = "lm2.RData"). [Reproducible example below.] When I try to load("lm2.RData") on my Windows laptop, I get Error in loadNamespace(name) : there is no package called 'multicore' I completely understand the error and I would like to ignore it and