Hi All,
Hi Jing,
Thank you for posting this on the forum. AMOVA in poppr performs in the same manner as in Arlequin. By default, within individual variance are calculated between haplotypes. You are seeing 191 df because there are 2n haplotypes in your sample (2 * 96) - 1 = 191. To calculate AMOVA without within individual distance, use within = FALSE.
Below is an example using P. ramorum data:
library('poppr')
data('Pram')
poppr.amova(Pram, ~YEAR) # within individual calculation
## No missing values detected.
##
## $call
## ade4::amova(samples = xtab, distances = xdist, structures = xstruct)
##
## $results
## Df Sum Sq Mean Sq
## Between YEAR 15 101.0174 6.7344930
## Between samples Within YEAR 713 279.4771 0.3919735
## Within samples 729 1780.5000 2.4423868
## Total 1457 2160.9945 1.4831809
##
## $componentsofcovariance
## Sigma %
## Variations Between YEAR 0.07413541 4.971141
## Variations Between samples Within YEAR -1.02520666 -68.745118
## Variations Within samples 2.44238683 163.773977
## Total variations 1.49131558 100.000000
##
## $statphi
## Phi
## Phi-samples-total -0.63773977
## Phi-samples-YEAR -0.72341307
## Phi-YEAR-total 0.04971141
poppr.amova(Pram, ~YEAR, within = FALSE)
## No missing values detected.
##
## $call
## ade4::amova(samples = xtab, distances = xdist, structures = xstruct)
##
## $results
## Df Sum Sq Mean Sq
## Between samples 15 200.8264 13.3884240
## Within samples 713 554.0461 0.7770632
## Total 728 754.8724 1.0369127
##
## $componentsofcovariance
## Sigma %
## Variations Between samples 0.2948192 27.50481
## Variations Within samples 0.7770632 72.49519
## Total variations 1.0718824 100.00000
##
## $statphi
## Phi
## Phi-samples-total 0.2750481
##
Hope that helps,
Zhian
Negative variance components can sometimes occur, because they are rather covariances. Their associated fixation indices can also be seen as correlation coefficients. Usually, slightly negative variance components can occur in absence of genetic structure, because the true value of the parameter you want to estimate is zero. Thus, if the expectation of the estimator is zero, you can have, by chance, slightly positive or slightly negative variance components. Most of the time, these negative variance components indicate an absence of genetic structure. They can have a biological meaning, though. For instance, in outcrossing organisms, genes from different populations can be more related to each other than genes from the same population.
Would it be correct to assume that poppr is controlling for within-individual and between-sample variance when testing for between-population variance, and that's why poppr finds no evidence of population structure?
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/a0ed6233-306f-4061-9cfd-5a2b9fde8371%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "poppr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+unsubscribe@googlegroups.com.
To post to this group, send email to po...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to po...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/ce31c271-09bd-4f1a-93b9-5e0c6f7125e2%40googlegroups.com.
<amova pegas results.png>
Hello Ana,Your results show zero degrees of freedom for city. Do you need to flip the hierarchical relationship to be City/Host?Best,
Zhian
To unsubscribe from this group and stop receiving emails from it, send an email to po...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/ce31c271-09bd-4f1a-93b9-5e0c6f7125e2%40googlegroups.com.
<amova pegas results.png>
To unsubscribe from this group and stop receiving emails from it, send an email to poppr+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/poppr/1a89e3fe-525b-4f07-ab56-d80f86e2235a%40googlegroups.com.