[R] best ordination method for binary variables

2013-02-27 Thread marco milella
Dear all, I'm analyzing a dataset (A) of 400 cases with 11 binary variables. Unfortunately, several (actually a lot) of cases are identical. NA are also present. I want to to plot distances between cases. For this, I obtained a distance matrix by dist(A, method="binary"). I then analyzed the obtai

[R] clustering of binary data

2012-12-06 Thread marco milella
Good morning, I am analyzing a dataset composed by 364 subjects and 13 binary variables (0,1 = absence,presence). I am testing possible association (co-presence) of my variables. To do this, I was trying with cluster analysis. My main interest is to check for the significance of the obtained clust

[R] plotting principal components on geographic map

2012-10-14 Thread marco milella
Dear all, I have a dataset representing several geographical points (locations), each one having a specific value after performing a PCA. Now I'm trying to understand how to separately represent on a geographic map (of Europe) the pattern of PC1,2, ecc.with colors (e.g.heatmap) I have to add that t

Re: [R] summing array elements

2011-05-30 Thread marco milella
Thanks a lot for your help marco 2011/5/27 Thomas Lumley > On Fri, May 27, 2011 at 10:06 AM, marco milella wrote: > > Hi to everybody > > I have an array with dimensions 2,4,3,3. > > Wanting to sum the matrices in the first two dimensions, I'm trying to > use

Re: [R] summing array elements

2011-05-30 Thread marco milella
1,] 36 228 420 > [2,] 100 292 484 > [3,] 164 356 548 > > > > apply(arr,1:2,sum) > will sum all elements arr(i1,i2,..) > for each single combination of the first and the second index > over all possible combinations of the third and fourth index. > > >

[R] summing array elements

2011-05-26 Thread marco milella
Hi to everybody I have an array with dimensions 2,4,3,3. Wanting to sum the matrices in the first two dimensions, I'm trying to use the "apply" function, but with no results. Have to say I'm quite new with R syntax. tx in advance marco [[alternative HTML version deleted]] ___