Вы получаете эту ошибку, потому что ваши переменные идеально коррелируют.
Ваши данные, которые я получил из примера:
structure(list(group = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L), .Label = c("2", "3"), class = "factor"), preTotalcorrecttrail = c(7L,
5L, 4L, 10L, 4L, 5L, 8L, 5L, 5L, 3L, 7L, 4L, 3L, 4L, 4L, 3L,
5L, 8L, 9L, 5L, 6L, 4L, 4L, 6L, 3L, 4L, 4L), preMemoryspan = c(4.5,
3.5, 3, 6, 3, 3.5, 5, 3.5, 3.5, 2.5, 4.5, 3, 2.5, 3, 3, 2.5,
3.5, 5, 5.5, 3.5, 4, 3, 3, 4, 2.5, 3, 3), postTotalcorrecttrial = c(12L,
6L, 7L, 9L, 6L, 8L, 7L, 6L, 6L, 5L, 6L, 6L, 5L, 5L, 5L, 4L, 6L,
8L, 7L, 4L, 5L, 5L, 4L, 6L, 5L, 5L, 5L), postmemoryspan = c(7,
4, 4.5, 5.5, 4, 5, 4.5, 4, 4, 3.5, 4, 4, 3.5, 3.5, 3.5, 3, 4,
5, 4.5, 3, 3.5, 3.5, 3, 4, 3.5, 3.5, 3.5)), row.names = c(NA,
-27L), class = "data.frame")
Мы проверяем корреляцию:
cor(Data[,-1])
preTotalcorrecttrail preMemoryspan
preTotalcorrecttrail 1.0000000 1.0000000
preMemoryspan 1.0000000 1.0000000
postTotalcorrecttrial 0.6469337 0.6469337
postmemoryspan 0.6469337 0.6469337
postTotalcorrecttrial postmemoryspan
preTotalcorrecttrail 0.6469337 0.6469337
preMemoryspan 0.6469337 0.6469337
postTotalcorrecttrial 1.0000000 1.0000000
postmemoryspan 1.0000000 1.0000000
Из того, что я вижу, postmemoryspan = 1 + 0,5 * postTotalcorrecttrial. Нет смысла делать манкову. Вы просто делаете линейную регрессию.