[R] help on statistics and code

2006-01-19 Thread david v
Hi, I need some advise on statistics. I have written the code below. What i'm trying to do here is that i read 1000 distance matrices derived from the same original data set. Afterwards I wan to create a consensus matix out of those 1000 distance matrices to see the relevance of the original

[R] Consensus dendogram help?

2006-01-17 Thread david v
Hello, The follwing code generates 1000 dendograms from 1000 input binary matrices. I dont't know how to generate a consensus dendogram from the 1000. Can you help me ? #code library(ade4) library(cluster) library(stats) for (i in 1:1000) { #read each file

[R] Cannot convert from phylo to hclust , error!!???

2006-01-17 Thread david v
Hello, The following code does'nt work for me. The last command reports an error. I have created a consensus tree using the consensus comand from phylo but cannot manipulate the phylo object afterwards to create a dendogram , by transforming the phylo object into a hclust object and then into a

[R] Permutation columns or boostrapping

2006-01-11 Thread david v
Hi, I want to permutate the following matrix and replace permutated columns. Is it possible to control the number of columns permutated. Let's say I only want to permute two columns. Can i do that with the sample method or should i any bootstrapping method ?? I'm not sure this is the best

[R] boot problem

2005-12-20 Thread david v
Hello, This is the code that is giving me problems library(boot) data-read.table(test,header=FALSE,sep=\t,row.names=1) data V2 V3 V4 A 5 8 9 B 12 54 89 C 65 89 23 D 32 69 44 E 21 84 97 F 33 59 71 G 16 45 93 H2 46 55 I 22 33 88 resample - function(x,index) {