I get this error message when I use summary() following model fitting with manyglm. When p.uni="unadjusted" is not included, summary() works fine, but whenever p.uni= is included, error message appears. I am using R version 3.2.4 and just installed mvabund via install.packages function. If you could find out what I am doing wrong, that would be very helpful. Below are my data, code, and the error message. Thank you very much.
Sincerely,
Kiyoshi
mydata <- structure(list(Area = structure(1:12, .Label = c("CTV", "Falconbridge",
"Franco", "Hwy144", "Kukagami", "Landfill", "Laurentian", "Nepewassi Lake",
"ONeil", "Sand Bay Rd", "Tilton Lake", "Trout Lake"), class = "factor"),
Rank = structure(c(4L, 4L, 2L, 3L, 2L, 4L, 3L, 1L, 3L, 1L,
2L, 1L), .Label = c("Reference", "Moderate", "Semibarren",
"Barren"), class = "factor"), ANAM = c(1L, 4L, 0L, 1L, 19L,
1L, 4L, 88L, 9L, 41L, 6L, 21L), HYVE = c(10L, 7L, 12L, 2L,
3L, 7L, 6L, 26L, 4L, 9L, 5L, 11L), LICA = c(0L, 2L, 2L, 37L,
24L, 16L, 25L, 19L, 0L, 21L, 49L, 85L), LICL = c(71L, 32L,
52L, 33L, 77L, 45L, 40L, 110L, 91L, 80L, 56L, 93L), LIPI = c(16L,
61L, 69L, 14L, 4L, 34L, 51L, 96L, 52L, 38L, 11L, 20L), LISE = c(28L,
56L, 32L, 5L, 13L, 1L, 0L, 41L, 72L, 24L, 1L, 46L), LISY = c(0L,
4L, 13L, 2L, 9L, 11L, 1L, 72L, 0L, 14L, 5L, 6L), PSCR = c(7L,
13L, 18L, 9L, 16L, 13L, 9L, 36L, 9L, 17L, 13L, 29L)), .Names = c("Area",
"Rank", "ANAM", "HYVE", "LICA", "LICL", "LIPI", "LISE", "LISY",
"PSCR"), class = "data.frame", row.names = c(NA, -12L))
mv <- mvabund(mydata[,3:10])
fit <- manyglm(mv ~ Rank, data=mydata, family="negative.binomial")
summary(fit, resamp="monte.carlo", p.uni="unadjusted", test="LR")
Error in rownames<-
(*tmp*
, value = c("ANAM", "HYVE", "LICA", "LICL", :
length of 'dimnames' [1] not equal to array extent