[R] problem in CART (RPART)

Naveena naveena.c at decidyn.com
Tue Sep 22 14:29:38 CEST 2009


Hai 

Can someone tel me whether it is possible to force in Variables at various
levels of the tree in CART. I have been using RPART for CART which comes
with PARTYKIT package. I am facing a problem with the tree it generates, it
picks up variables which don't make much sense. I want it to pick up few
vars at few levels. Can someone please help me out in this regard. 

Its urgent.

Thanks


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Robert Hall
Sent: Tuesday, September 22, 2009 3:11 PM
To: r-help
Subject: [R] problem using KLdiv - flexmix

I am receiving the following error while executing KLdiv method:

kl<-KLdiv(y)
Error in function (classes, fdef, mtable)  :
  unable to find an inherited method for function "KLdiv", for signature
"data.frame"

the code is as follows:
require(flexmix)
KLdiv(y)


the object y (snippet, actual object contains 188 entries) is as follows:

    s1p5 s2p5
1    0.6  0.8
2    0.8  0.2
3    0.6  0.8
4    0.2  0.0
5    0.6  0.8
6    0.6  0.4
7    0.2  0.8
8    1.0  0.0
9    0.4  0.8
10   0.4  0.4

I tried searching in the R mail archives but could not get any convincing
answer.
Please help.
Thanks!

Rob Hall.

	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list