Extends
- AggregationTest
Methods
(static) weights(n) → {Array.<number>}
Default weight function for burden test. All variants weighted equally. Only requires the number of variants since they are all given the same weight value.
Parameters:
Name | Type | Description |
---|---|---|
n |
number | Number of variants. |
Returns:
An array of weights, one per variant.
- Type
- Array.<number>
run(u, v, w) → {Array.<Number>}
Calculate burden test from vector of score statistics and variances.
Parameters:
Name | Type | Description |
---|---|---|
u |
Array.<Number> | Vector of score statistics (length m, number of variants) |
v |
Array.<Number> | Covariance matrix of score statistics |
w |
Array.<Number> | Weight vector (length m, number of variants) |
Returns:
Array of: [burden test statistic, p-value, effect size of burden test, standard error of effect size]
- Type
- Array.<Number>