i am trying to use the adonis function in vegan to run the permanova analysis. but i am getting very different results depending on how i call adonis.
if i call adonis using a distance object such as the following:
bc=vegdist( data, method='bray')
adonis(bc~var)
i get a very different result than if i convert bc (a dist object) into a matrix:
bc=as.matrix( vegdist(data, method='bray') )
adonis(bc~var)
what is causing this difference and which is correct?
i am trying to use the adonis function in vegan to run the permanova analysis. but i am getting very different results depending on how i call adonis.
if i call adonis using a distance object such as the following:
bc=vegdist( data, method='bray')
adonis(bc~var)
i get a very different result than if i convert bc (a dist object) into a matrix:
bc=as.matrix( vegdist(data, method='bray') )
adonis(bc~var)
what is causing this difference and which is correct?