Displaying 2 results from an estimated 2 matches for "zttw".
Did you mean:
ttw
2008 Oct 21
4
subscripting a one column matrix drops dimension
...data),
from the package cclust, file Rindexes.R, lines 137-147:
ttww <- function(x, clsize, cluster)
{
n <- sum(clsize)
k <- length(clsize)
w<-0
tt <- cov(x)*n
for (l in 1:k)
w<- w+cov(x[cluster==l,])*clsize[l]
zttw <- list(tt=tt, w=w)
return(zttw)
}
Any way around it?
Thank you.
Moacir Pedroso Jr.
Embrapa - Empresa Brasileira de Pesquisa Agropecu?ria
(on leave at INRA - Instutute National de la Recherche Agronomique)
2004 Mar 09
1
Package cclust error
Hello, here is my problem,
After looking at the mail archives, I found a
description of the error I get when I use this
package.
At first I even tought that they were showing how to solve it.
But the thing is that by saying "the programmer
forgot drop=FALSE" doesn't show me how I should
get rid of the problem
I have looked inside the package very quickly and
I found three