search for: formatg

Displaying 5 results from an estimated 5 matches for "formatg".

Did you mean: format
2010 Feb 26
2
Error in mvpart example
...n the 'mvpart' package. I tried: require(mvpart) data(spider) fit3 <- rpart(gdist(spider[,1:12],meth="bray",full=TRUE,sq=TRUE)~water+twigs+reft+herbs+moss+sand,spider,method="dist") #directly from ?rpart summary(fit3) ...which returned the following: Error in apply(formatg(yval, digits - 3), 1, paste, collapse = ",", sep = "") : dim(X) must have a positive length This seems to be a problem with the cross-validation, since the "xerror" and "xstd" columns are missing from the summary table as well. Using the mpart() wrapper...
2002 Aug 29
3
2 questions
Hi all, I am using R1.5.0 under Unix, I have a couple of questions here. 1. My program is running out of memory. I am writing a program to grow a list of trees using rpart() on a subset of a large dataset(5807x693) with a different response for every tree. I saw that after each tree was constucted, 116 MB of data was being added to the Vcells. I have no idea what this data is. My dataset is
2002 Aug 28
0
user defined function in rpart
...numy=2, summary= function(yval, dev, wt, ylevel, digits ) { paste(" mean=", format(signif(yval, digits)), ", MSE=" , format(signif(dev/wt, digits)), sep='') }, text= function(yval, dev, wt, ylevel, digits, n, use.n ) { if(use.n) {paste(formatg(yval,digits),"\nn=", n,sep="")} else{paste(formatg(yval,digits))} }) } tst.lst<-list(eval=tst.eval, split=tst.split, init=tst.init) data(lung) fit1 <- rpart(Surv(time, status) ~ age + ph.karno + meal.cal,data=lung,control=rpart.control(minspli...
2005 May 25
0
Error with user defined split function in rpart (PR#7895)
...numy=1, summary= function(yval, dev, wt, ylevel, digits ) { paste(" mean=", format(signif(yval, digits)), ", MSE=" , format(signif(dev/wt, digits)), sep='') }, text= function(yval, dev, wt, ylevel, digits, n, use.n ) { if(use.n) {paste(formatg(yval,digits),"\nn=", n,sep="")} else{paste(formatg(yval,digits))} }) print("***** END: TEMP3 *****"); ret } alist <- list(eval=temp1, split=temp2, init=temp3); fit1 <- rpart(y ~ ., data=mydata, method=alist, control=list(cp...
2002 Jan 02
1
No subject
Any rpart user: I am trying to construct an rpart tree using a subset of the data and it will occasionally fail when predicting a categorical response variable. The reason that rpart fails is that the subset does not contain each of the categories present in the original data. For example, in the car.test.frame example, a subset that has all the categories except "Small" will not