Displaying 2 results from an estimated 2 matches for "pco2".
Did you mean:
pco
2005 Oct 06
1
Compare two distance matrices
Hi all,
I am trying to compare two distance matrices with R. I would like to
create a XY plot of these matrices and do some linear regression on
it. But, I am a bit new to R, so i have a few questions (I searched in
the documentation with no success).
The first problem is loading a distance matrix into R. This matrix is
the output of a the Phylip program Protdist and lookes like this:
5
2010 Aug 24
0
mlm for within subject design
...2.8802778 3.5524921 1.6707483 2.7134664 4.9800100 2.5480973 4.3439383
10 3.0686316 2.6196374 2.4765500 3.2133783 5.1381903 1.4228493 1.5749603
8 9
2
3
4
5
6
7
8
9 3.3777063
10 2.8790276 3.6806114
And then, I follow from help:
> pco1 = dudi.pco(dist1, nf=2, scannf=F)
> pco2 = dudi.pco(dist2, nf=2, scannf=F)
> coi = coinertia(pco1, pco2, nf=2, scannf=F)
> testco1 = randtest.coinertia(coi, nrepet=1000)
The result is:
> Error in randtest.coinertia(coi, nrepet = 1000) : Not yet available
Could anyone help with this?
Best,
PM
--Forwarded Message Attachme...