[R-sig-genetics] Bug in ade4 randtest.amova and solution

Thibaut Jombart thibautjombart at gmail.com
Tue Nov 22 12:47:40 CET 2016


Dear Zhian,

this is great, thanks for letting us know!

Best
Thibaut


--
Dr Thibaut Jombart
Lecturer, Department of Infectious Disease Epidemiology, Imperial College
London
Head of RECON: repidemicsconsortium.org
sites.google.com/site/thibautjombart/
github.com/thibautjombart
Twitter: @TeebzR <http://twitter.com/TeebzR>

On 21 November 2016 at 19:29, Zhian Kamvar <zkamvar at gmail.com> wrote:

> Hello,
>
> I am the maintainer for the poppr package, which depends on adegenet (and
> thus ade4). One of my users noticed a bug in the output of randtest.amova:
> https://groups.google.com/forum/#!topic/poppr/D1gpqgQM2F0
>
> Basically, the alternate hypothesis for the randomization tests would be
> incorrect at every fourth hierarchical level. I contacted the maintainer
> and this bug has been fixed on the ade4 github page:
> https://github.com/sdray/ade4/pull/4
>
> If you do run into this problem, there is a workaround by passing the
> result to as.krandtest()
>
> n <- 3 # (set this to the number of hierarchical levels)
> with(randomization_result, as.krandtest(sim, obs, alter = c("less",
> rep("greater", n)), call = call, names = names)
>
> Cheers,
> Zhian N. Kamvar
>
> _______________________________________________
> R-sig-genetics mailing list
> R-sig-genetics at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-genetics
>

	[[alternative HTML version deleted]]



More information about the R-sig-genetics mailing list