andi-nl / ANDI-frontend

Advanced Neuropsychological Diagnostics Infrastructure frontend
1 stars 4 forks source link

Confidence interval becomes wider instead of narrower when going from 95 to 68 #98

Closed JAvRZ closed 8 years ago

JAvRZ commented 8 years ago

When I saw this I thought it must be a andistats issue, as I think the inneredge and outeredge come from there. But running normcomp on a 68 testjson, I get "inneredge": -0.9947, "outeredge": 0.9947, 95% interval (about -1.96 to 1.96, as expected) 95interval

68% interval (about -2.5, 2.5, expected about -1, 1) 68interval

Maybe the labeling of the inputs in the checkbox is different from what is sent to the normcomp function (the inputs in the checkbox are in a strange order anyway). (a 99% interval would correspond to -2.5781 - 2.5781 according to the normcomp run locally).

JAvRZ commented 8 years ago

I'm a bit afraid to touch the dataentry file, so I won't, but I think I found the source of this bug: ! <option value="99">68</option>.

mkuzak commented 8 years ago

Option value corrected, but the bug needs to be confirmed for new visualisation.

jvdzwaan commented 8 years ago

I think this now works correctly. @JAvRZ can you verify this?

JAvRZ commented 8 years ago

Yes, tried a few things, looks alright.