[R] KLdiv question

2010-07-29 Thread Ralf B
I am having a data set that causes flexmix::KLdiv to produce NA as a result and I was told that increasing the sensitivity of the 'esp' value can be used to avoid a lot of values being set to a default (which presumably causes the problem). Now here my question. When running KLdiv on a normal

[R] KLdiv question (data.frame)

2010-07-15 Thread Ralf B
Hi all, I wonder why KLdiv does not work with data.frames: n - 50 mydata - data.frame( sequence=c(1:n), data1=c(rnorm(n)), data2=c(rnorm(n)) ) # does NOT work KLdiv(mydata) # works fine dataOnly - cbind(mydata$data1, mydata$data2, mydata$group) KLdiv(dataOnly) Any

Re: [R] KLdiv question (data.frame)

2010-07-15 Thread Peter Ehlers
On 2010-07-15 15:15, Ralf B wrote: Hi all, I wonder why KLdiv does not work with data.frames: Because it's not designed that way? (I assume that you mean KLdiv() in pkg:flexmix.) Check the help page. It's pretty clear about what input is wanted: a matrix object or a flexmix object (or FLXMC