-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catches populations of different sizes
- Loading branch information
1 parent
f580f8b
commit ab1a443
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,9 +87,13 @@ async function rankSumTest(parms){ | |
// let st=await import('https://esm.sh/[email protected]') | ||
// let z = st.tTestTwoSample(parms.population1,parms.population2) | ||
// return `the comparison of population [${parms.population1}] with [${parms.population2}] by a rank sum test assigns a p = ${st.cumulativeStdNormalProbability(z)} to the null hypothesis that they are similar` | ||
let wcTest = wilcoxon(parms.population1,parms.population2) | ||
wcTest.pValue | ||
return `the comparison of population [${parms.population1}] with [${parms.population2}] by Wilcoxon Rank Sum Test assigns a p = ${wcTest.pValue} to the null hypothesis that they are similar` | ||
if(parms.population1.length!=parms.population2.length){ | ||
return `please compare populations of the same size` | ||
}else{ | ||
let wcTest = wilcoxon(parms.population1,parms.population2) | ||
wcTest.pValue | ||
return `the comparison of population [${parms.population1}] with [${parms.population2}] by Wilcoxon Rank Sum Test assigns a p = ${wcTest.pValue} to the null hypothesis that they are similar` | ||
} | ||
} | ||
|
||
const rankSumTestDescription = { // at NCI Shady Grove | ||
|