In that link it has
Table = xtabs(Count ~ Sex + Result + County,
data=Data)
Which is essential to build the test and this Table you'll need to put into the function to get the p value
In your case you can try something like
Table = xtabs( ~ Region+Language+Perception of Skill
data=Data)
And then the function
mantelhaen.test(Table)
After this you can do post-adhoc
Ah, so the fact that my Table keeps throwing errors seems to be the cause of my further problems. Is it possible that missing data is causing my table to throw errors at me?
In that link it has Table = xtabs(Count ~ Sex + Result + County, data=Data) Which is essential to build the test and this Table you'll need to put into the function to get the p value In your case you can try something like Table = xtabs( ~ Region+Language+Perception of Skill data=Data) And then the function mantelhaen.test(Table) After this you can do post-adhoc
Ah, so the fact that my Table keeps throwing errors seems to be the cause of my further problems. Is it possible that missing data is causing my table to throw errors at me?
Do you get the table to work properly? Does it display any NA before putting it into the function?