Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMissing (or NA) data for PERMANOVA #319
Comments
|
It seems The Alternatively, you can have listwise deletion of missing values using library(vegan)
data(dune, dune.env)
z <- dune.env
z[12,5] <- NA # one missing value
k <- complete.cases(z) # FALSE for rows with NA
adonis(dune[k,] ~ ., z[k,]) # use complete.cases as row selector |
The documented behaviour was accidentally and silently changed to always making pairwise deletion of missing values with internal speed up of C code (commit 3aeeb1d 2016-09-06, released in vegan 2.4-2 2017-01-17). Now we stop with error (like documented). See also my comment in GitHub issue #319. (cherry picked from commit 2e9969a)
|
For the record: commit messages 2e9969a (and cherry-picked f4d5cae) suggest that |
I've searched around the threads on here and am not sure I am able to find what I'm looking for. I am hoping to use PERMANOVA to run my analysis, but I do have missing values. I don't seem to be able to run vegdist, adonis, or other related functions with blanks or NA. Is there any way around this?