Hello,

That error occurs if you have Inf values in vekkat. Try to see them with

finite <- is.finite(vekkat)
sum(!finite)

If this is not zero, you can fix your test with

kruskal.test(wis1[finite] ~ vekkat[finite])


Hope this helps,

Rui Barradas

Em 10-03-2013 10:37, Adriana Škrinárová escreveu:
Hi

I need to test scores from questionnaires ADDQoL by age group by Kruskal
test. But he wrote me:

kruskal.test (wis1 ~ vekkat)
Error in kruskal.test.default (c (-2, -4, 0, -1, -1, -3, 0, -4, 0, -1, 0,:
all group levels must be finite

Vekkat is as.factor and wis1 is as.nuemric

How to remove this error? Please advise me. Thank you

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to