Hi,

I am trying to use a mantel test on two distance matrices. The code I have entered for each is:

Gen_dists <- read.csv(file.choose(),
                                                stringsAsFactors = FALSE,
                                                na.strings = c(" "),
                                                fill = T,
                                                header = FALSE,
                  blank.lines.skip = FALSE)

Gen_matrix <- as.matrix(Gen_dists)

mantel.test(Geo_matrix, Gen_matrix, nperm = 999, graph = T, alternative = "great")

I am getting a result but with lots of warning messages :
"Warning: non-square matrix"

However, my matrices are square!

Has anyone else had this problem?

Many thanks.

	[[alternative HTML version deleted]]

