search for: fitorigin

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

Did you mean: fitoriginal
2011 Dec 27
0
Using minsplit and unequal weights in rpart
...turning for help. Thanks in advance for your help, -Saar The following code shows what the issue is; the first 3 trees are the same, but the following two (with uneven weights) turn out differently: ## playing with rpart weights require(rpart) dev.new() par(mfrow=c(2,3), xpd=NA) data(kyphosis) fitOriginal <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis, control=rpart.control(minsplit=15)) plot(fitOriginal) text(fitOriginal, use.n=TRUE) # this dataset is the original data repeated 3 times kyphosisRepeated <- rbind(kyphosis, kyphosis, kyphosis) fitRepeated <- rpart(Kyphosis ~ Age +...