Kruskal Wallis stata vs wizard

49 views
Skip to first unread message

Tristan Lane

unread,
May 6, 2020, 2:43:40 PM5/6/20
to Wizard User Group
Hi Evan and everyone.

Same data.
Different outcomes for wizard (significant) and stata (non significant).
22 per group.
Prism gives same as wizard.

Allowing for data being right is the reason exact vs approximate values?

Evan Miller

unread,
May 6, 2020, 3:05:54 PM5/6/20
to wizard...@googlegroups.com
Hi Tristan,

Wizard (and I guess Prism) are using the chi-squared approximation for Kruskal-Wallis with 3+ groups. For 2 groups (Mann-Whitney) Wizard will compute the exact version when N<40 per group.

Exact vs approximate has more to do with computational complexity than anything else. Wizard's implementation follows this paper for the Mann-Whitney U:


I can look into providing an exact version for 3+ groups - which I guess is what Stata is doing.

How many groups are in your test?

Evan

--
You received this message because you are subscribed to the Google Groups "Wizard User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wizard-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wizard-users/34da1daf-7a19-4670-96ef-3d1d78f75d37%40googlegroups.com.

Tristan Lane

unread,
May 6, 2020, 3:10:21 PM5/6/20
to Wizard User Group
Ah cool.

Will read.

Also annoyingly it’s because of a weird sorting in the data...

Weirdness over, sorry!
Reply all
Reply to author
Forward
0 new messages