Skip to content

Commit

Permalink
change method to compute std for nonparametric
Browse files Browse the repository at this point in the history
  • Loading branch information
deadsalmonbrain committed May 13, 2022
1 parent c18a7b6 commit eb4b9b9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ object MannWhitneyTest extends BaseStatTest {
val uStatistic = mannWhitneyUTest.mannWhitneyU(control, treatment)
val pValue = mannWhitneyUTest.mannWhitneyUTest(control, treatment)

val std = math.sqrt(treatmentMedianVariance + controlMedianVariance)
val std = math.sqrt(
controlMedianVariance / control.length + treatmentMedianVariance / treatment.length
)
val size = math.max(control.length, treatment.length)

val ci = CI(
Expand Down

0 comments on commit eb4b9b9

Please sign in to comment.