Hello S-users,
I am trying to run "rpart" from the rpart library of Terry Therneau. The
following runs OK in the built-in "tree" function
ttt.tree <- tree(formula = PP ~ ageass + mtass, data = POprof.OK, weights
= unsous)
But the following fails with "rpart":
> ttt.rpart.040517 <- rpart(formula = PP ~ ageass + mtass, data =
POprof.OK)
Problem in rpart(formula = PP ~ ageass + mtass, data = POpr..: No splits
could be created
Use traceback() to see the call stack
PP is a continous variable with lots of 0, ageass and mtass are factors
with 12 and 11 levels respectively.
My specifications:
S-PLUS : Copyright (c) 1988, 2004 Insightful Corp.
S : Copyright Lucent Technologies, Inc.
Version 6.2.1 for Sun SPARC, SunOS 5.8, 64-bit : 2004
Working data will be in /home/jeg002/MySwork
I have read most of the "An Introduction to Recursive Partitionning Using
the RPART Routines" of Terry Therneau and Elizabeth Atkinson but haven't
found anything that could point me in the direction of the error.
Any pointers will be greatly appreciated,
Gérald Jean
Analyste-conseil (statistiques), Actuariat
télephone : (418) 835-4900 poste (7639)
télecopieur : (418) 835-6657
courrier électronique: gerald.jean@spgdag.ca
"In God we trust all others must bring data" W. Edwards Deming
|