search for: dnam

Displaying 2 results from an estimated 2 matches for "dnam".

Did you mean: dna
2001 Sep 06
0
crosstabulation
...ta))) stop("data is not an array") if(any(data < 0) || any(trunc(data) != data)) stop("data is not an array of counts") if(length(MARGIN)) sweep(data, MARGIN = MARGIN, apply(data, MARGIN = MARGIN, sum), "/") else data/sum(data) } tt <- table(...) dd <- dim(tt) dnam <- dimnames(tt) if(length(dd) > 3) stop("max 3 dimensions") if(length(dd) == 1) { dd <- c(dd, 1) dim(tt) <- dd margin <- 2 dnam<-list(dnam[[1]],names(dnam[1])) } dd[2] <- dd[2] * 2 rr <- array(dim = dd) rr.lab <- rep(dnam[[2]], 2) if(length(dd) == 3) { for(j in...
2005 Sep 07
2
Hotelling Test
Hello R-users, I've been looking for a function performing one and two sample Hotelling test for testing equality of mean vectors. Has anyone implemented such a function in R? thanks a lot, Bill ============== Bill Donner Statistician