@mark1russell7/rigor-statistics 0.1.18 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -111,7 +111,8 @@ The default expansion has one product for each pair of levels of two dimensions.
111
111
  | `bootstrapMedian`, `bootstrapClusters` | The interval of the median, and a bootstrap that draws whole clusters (boards, seeds, sites). |
112
112
  | `bootstrapTwo(a, b, statistic, options)` | A bootstrap interval of a statistic of two independent samples, for example two arms of a benchmark. Each run draws all of `a`, then all of `b`. |
113
113
  | `bootstrapMedianRatio(numerator, denominator, options)` | The interval of `median(numerator) / median(denominator)`. It is the uncertainty of the ratio, not the spread of the samples. |
114
- | `sampleTotalInterval(values, { population, scale })` | The interval of the total of a population from a uniform sample of `m` of its `n` items without replacement. The deviations get the finite population correction `sqrt(1 - m / n)`. `scale` is `n / m` by default. When `m` is `n`, the interval is the estimate. For a small `m`, the interval is too narrow: at `m = 8` of `n = 40`, the coverage is 0.865. |
114
+ | `sampleTotalInterval(values, { population, scale })` | The interval of the total of a population from a uniform sample of `m` of its `n` items without replacement. The deviations get the finite population correction `sqrt(1 - m / n)`. `scale` is `n / m` by default. When `m` is `n`, the interval is the estimate. For a small `m`, the interval is too narrow: at `m = 8` of `n = 40`, the coverage is 0.865. For a total over pairs, use `uStatisticInterval`. |
115
+ | `uStatisticInterval(totals, { order, population, method, level, range })` | The interval of a total over all sets of `r` units of a population, for example the crossings of all pairs. The input is the total of each unit of a sample without replacement. The estimate is `S * C(n, r) / C(m, r)`. The method `"conservative"` uses the Hoeffding bound of a U-statistic with `floor(m / r)` draws and the `range` of the kernel. It holds at each `m`. The method `"tight"` uses the jackknife variance times `1 - m / n`, and the t quantile with `m - 1` degrees of freedom. This variance is exact for a linear kernel and larger for others. When all the totals are equal, the method `"tight"` uses the method `"conservative"`, or it throws without `range`. The result gives the `method` that it used. At `m = 8`, the coverage of `"tight"` is 0.885 to 0.915 for a skewed kernel. The method `"auto"` needs `range`. It uses `"tight"` from `m = U_STATISTIC_TIGHT_MIN_SAMPLE`. The calibration study `u-statistic-interval` sets this constant with `coverageMinSample`. Until a run of the study gives a value, it is infinite. |
115
116
  | `leastSquares(x, y, { intercept })` | The ordinary least-squares fit of `y` on the rows of `x`, with a QR decomposition. It gives the coefficients, `residualSd`, `r2`, `n` and `k`. A singular design gives NaN coefficients. |
116
117
  | `bootstrapLeastSquares(x, y, options)` | One bootstrap interval for each coefficient of `leastSquares`, from the same draws of whole rows. A singular draw does not count. |
117
118
  | `ridgeSolve(gram, moment, lambda, { free })` | The ridge coefficients from the normal equations `X'X` and `X'y`, with a Cholesky factorization. The `free` coefficients have no penalty. A matrix that is not positive definite gives NaN coefficients. |
@@ -126,6 +127,8 @@ The default expansion has one product for each pair of levels of two dimensions.
126
127
  | `quantileSamples(p, level)` | The fewest independent values that give a quantile an upper bound. At the level 0.95: 72 values for p95, 368 for p99 and 3,688 for p99.9. |
127
128
  | `binomialInterval(n, p, level)`, `negativeBinomialInterval(successes, p, level)` | The central interval of a binomial count, and of a count of failures before `successes` successes. Each tail outside holds `(1 - level) / 2` or less. |
128
129
  | `holm(pValues, level)` | The Holm correction of a family of tests. |
130
+ | `binomialTest(k, n, p, side)` | The p of the exact one-sided binomial test of `k` successes in `n` trials. The side `"less"` gives `P(X <= k)`, and `"greater"` gives `P(X >= k)`. |
131
+ | `coverageMinSample(cells, { level, alpha, pooledLow })` | The smallest sample size `m` from which an interval method keeps its level, from the hits of seeded cells. A size qualifies when the cells with a sample of that size or more pass two tests. No cell rejects `level` in `binomialTest` after `holm` at `alpha`, and the `wilson` lower end of the pooled hits is `pooledLow` or more. The set is closed upward: the result is the smallest `m` such that each size of `m` or more qualifies. `blocking` gives the largest size that fails. When the largest size fails, the result is `Infinity`. Fix the bar before the run. |
129
132
  | `partialConjunction(pValues, need)` | The p of the claim that at least `need` of these tests have a real effect. |
130
133
  | `spearman`, `kendallTau`, `ranks` | The rank correlations, with mean ranks for ties. |
131
134
  | `compareRatios`, `noiseFloor`, `noiseVerdict` | The comparison with a baseline, the noise floor of the 5-seed rule with a margin of practical effect, and the state of a difference over the seeds. |
package/build/index.d.ts CHANGED
@@ -172,7 +172,7 @@ interface SampleTotalOptions extends BootstrapOptions {
172
172
  * The interval is narrow for a small sample. The draws give the variance of the sample with the divisor `m`, not
173
173
  * `m - 1`, so the width gets the factor `sqrt((m - 1) / m)`. The skew of the values adds to the miss. In the tests,
174
174
  * 400 samples of `m = 8` of `n = 40` hold the total 346 times (Wilson 0.828 to 0.895). At `m = 100` of `n = 200`,
175
- * the coverage agrees with 95%.
175
+ * the coverage agrees with 95%. For a total over the pairs of the items, use `uStatisticInterval`.
176
176
  */
177
177
  export declare function sampleTotalInterval(values: readonly number[], options: SampleTotalOptions): Interval;
178
178
  /** The smooth laws that `smoothLawScores` compares. Each law has 2 fitted numbers. */
@@ -938,6 +938,23 @@ interface CountInterval {
938
938
  * or less. The two tails are separate sums, so that a small upper tail keeps its digits.
939
939
  */
940
940
  export declare function binomialInterval(n: number, p: number, level?: number): CountInterval;
941
+ /** The side of `binomialTest`: `"less"` gives `P(X <= k)`, and `"greater"` gives `P(X >= k)`. */
942
+ type BinomialSide = "less" | "greater";
943
+ /**
944
+ * This function gives the p of the exact one-sided binomial test of `k` successes in `n` trials, with
945
+ * X ~ Binomial(n, p). The side `"less"` gives `P(X <= k)`. A small value rejects the claim "the chance is `p` or
946
+ * more". The side `"greater"` gives `P(X >= k)`. A small value rejects the claim "the chance is `p` or less".
947
+ *
948
+ * The sum starts at the largest term of the tail, so a small tail keeps its digits. At `p = 1/2`, the side
949
+ * `"greater"` is equal to the one-sided `signTest(k, n - k)`.
950
+ *
951
+ * @param k - The count of successes, a whole number from 0 to `n`.
952
+ * @param n - The count of trials, a whole number of 0 or more.
953
+ * @param p - The chance of a success under the claim, from 0 to 1.
954
+ * @param side - The side of the tail.
955
+ * @returns The p of the test, from 0 to 1.
956
+ */
957
+ export declare function binomialTest(k: number, n: number, p: number, side: BinomialSide): number;
941
958
  /**
942
959
  * The central interval of a negative binomial count. X is the count of failures before `successes` successes, and
943
960
  * `p` is the chance of a success at each try. `low` is the smallest k with P(X <= k) > (1 - level) / 2.
@@ -1090,5 +1107,214 @@ interface OptionFloorOptions {
1090
1107
  * @returns A whole number of 2 or more.
1091
1108
  */
1092
1109
  export declare function optionFloor(options: OptionFloorOptions): number;
1093
- export type { BootstrapOptions, CalibrationLevel, CategoricalDimension, CompareOptions, Comparison, ContinuousDimension, Corrected, CountInterval, Effect, Forecast, Interval, Kappa, LeastSquaresFit, LeastSquaresOptions, MedianInterval, ModeOptions, NoiseOptions, NoiseState, NoiseVerdict, OptionFloorOptions, OrdinalDimension, ParsedResponseRecord, PermutationOptions, PermutationResult, Proportion, QuantileInterval, QuantileMethod, ResponseAbsentPoint, ResponseBand, ResponseCurvePoint, ResponseData, ResponseDimension, ResponseDimensionBase, ResponseFactor, ResponseFault, ResponseFitOptions, ResponseFold, ResponseFoldError, ResponseHeldOutError, ResponseInputValue, ResponseMeasure, ResponseModel, ResponseModelBase, ResponsePoint, ResponseReason, ResponseRecord, ResponseSlice, ResponseSliceOptions, ResponseSlicePoint, ResponseSurface, ResponseSurfaceAbsentPoint, ResponseSurfaceOptions, ResponseSurfacePoint, ResponseTableCell, ResponseValue, ResponseViewOptions, ResponseWhen, RidgeInput, RidgeInputBase, RidgeLevelInput, RidgeNumberInput, RidgeOptions, RidgeRankInput, RidgeResponseModel, RidgeTerm, SampleTotalOptions, SideP, SmoothLaw, SmoothLawScore, Summary, TableResponseModel, TwoSamplePermutationOptions, TwoSamplePermutationResult };
1110
+ /** One cell of a coverage study: the hits of a method on the true value in `draws` seeded samples of size `sample`. */
1111
+ interface CoverageCell {
1112
+ /** The name of the cell, for example `"skewed 120/108"`. The result names the rejected cells with it. */
1113
+ readonly name: string;
1114
+ /** The sample size `m` of the cell, a whole number of 1 or more. */
1115
+ readonly sample: number;
1116
+ /** The count of samples whose interval holds the true value, a whole number from 0 to `draws`. */
1117
+ readonly hits: number;
1118
+ /** The count of samples of the cell, a whole number of 1 or more. */
1119
+ readonly draws: number;
1120
+ }
1121
+ /** The bar of `coverageMinSample`. Fix it before the run, and do not change it after the run. */
1122
+ interface CoverageBar {
1123
+ /** The coverage that the method claims, for example 0.95. Each cell has a one-sided exact binomial test of it. */
1124
+ readonly level: number;
1125
+ /** The level of the Holm family of the cell tests, for example 0.05. */
1126
+ readonly alpha: number;
1127
+ /** The smallest Wilson lower end of the pooled coverage, for example 0.94. */
1128
+ readonly pooledLow: number;
1129
+ /** The z of the Wilson interval. The default is `Z95`. */
1130
+ readonly z?: number;
1131
+ }
1132
+ /** The reason of one step: `"qualifies"`, or the test or tests that failed. */
1133
+ type CoverageReason = "qualifies" | "cell-rejected" | "pooled-low" | "cell-rejected-and-pooled-low";
1134
+ /** The result of the bar at one sample size `m`, over each cell with a sample of `m` or more. */
1135
+ interface CoverageStep {
1136
+ /** The sample size `m` of the step. */
1137
+ readonly sample: number;
1138
+ /** The count of cells with a sample of `m` or more. */
1139
+ readonly cells: number;
1140
+ /** The names of the cells that reject the coverage `level`, after the Holm correction. */
1141
+ readonly rejected: readonly string[];
1142
+ /** The smallest Holm-adjusted p of the cells of the step. */
1143
+ readonly smallestAdjusted: number;
1144
+ /** The sum of the hits of the cells of the step. */
1145
+ readonly hits: number;
1146
+ /** The sum of the draws of the cells of the step. */
1147
+ readonly draws: number;
1148
+ /** The Wilson interval of the pooled coverage `hits / draws`. */
1149
+ readonly pooled: Proportion;
1150
+ /** The sample size `m` passes the two tests of the bar. */
1151
+ readonly qualifies: boolean;
1152
+ readonly reason: CoverageReason;
1153
+ }
1154
+ /** The result of `coverageMinSample`. */
1155
+ interface CoverageMinSample {
1156
+ /**
1157
+ * The smallest sample size `m` of the cells such that each size of `m` or more passes the bar. It is infinite when
1158
+ * the largest size fails.
1159
+ */
1160
+ readonly minSample: number;
1161
+ /** The largest sample size that fails the bar. It blocks each smaller size. The result has no `blocking` when each size passes. */
1162
+ readonly blocking?: number;
1163
+ /** One step for each sample size of the cells, from the smallest to the largest. */
1164
+ readonly steps: readonly CoverageStep[];
1165
+ }
1166
+ /**
1167
+ * This function applies a fixed bar of coverage to the cells of a study. It gives the smallest sample size `m` from
1168
+ * which an interval method keeps its level. The method qualifies at `m` when the cells with a sample of `m` or more
1169
+ * pass two tests:
1170
+ *
1171
+ * 1. No cell rejects the coverage `level`. Each cell has the exact one-sided binomial test `P(X <= hits)`, with
1172
+ * X ~ Binomial(draws, level). The family of these tests gets the Holm correction at `alpha`.
1173
+ * 2. The Wilson lower end of the pooled coverage, the sum of the hits over the sum of the draws, is `pooledLow`
1174
+ * or more.
1175
+ *
1176
+ * Each step tells the result of the two tests at its `m`. A step does not depend on the steps of other sizes. At a
1177
+ * small `m`, the pool also holds the cells of the larger sizes. Thus a small `m` can pass while a larger `m` fails
1178
+ * alone, for example near `m = n`.
1179
+ *
1180
+ * Thus the set of sizes is closed upward. The result is the smallest `m` of the cells such that each size of `m` or
1181
+ * more qualifies. The field `blocking` gives the largest size that fails. When the largest size fails, the result is
1182
+ * infinite.
1183
+ *
1184
+ * @param cells - The hits and the draws of each cell. Each cell has its own sample size.
1185
+ * @param bar - The level, the alpha of the Holm family and the pooled lower end.
1186
+ * @returns The smallest size from which each size qualifies, the size that blocks, and the result at each size.
1187
+ */
1188
+ export declare function coverageMinSample(cells: readonly CoverageCell[], bar: CoverageBar): CoverageMinSample;
1189
+ /** The methods of `uStatisticInterval`. The method `"auto"` selects one of the other two for each sample. */
1190
+ type UStatisticMethod = "conservative" | "tight" | "auto";
1191
+ /**
1192
+ * The smallest sample `m` at which the method `"auto"` uses the method `"tight"`. The calibration study
1193
+ * `u-statistic-interval` gives the value with `coverageMinSample`. The value is the smallest `m` of the grid such that
1194
+ * each `m` of the grid from this value up passes the bar. Until a run of the study gives a value, the value is
1195
+ * infinite. The TSDoc of `uStatisticInterval` gives the bar of the study.
1196
+ */
1197
+ export declare const U_STATISTIC_TIGHT_MIN_SAMPLE: number;
1198
+ /** The options of `uStatisticInterval`. */
1199
+ interface UStatisticOptions {
1200
+ /** The order `r` of the kernel: the number of units in each set. It is a whole number of 1 or more. */
1201
+ readonly order: number;
1202
+ /** The number of units in the whole population, `n`. It is a whole number, and it is not less than the sample. */
1203
+ readonly population: number;
1204
+ /** The method of the interval. The methods `"conservative"` and `"auto"` need `range`. */
1205
+ readonly method: UStatisticMethod;
1206
+ /** The level of the interval. The default is 0.95. */
1207
+ readonly level?: number;
1208
+ /** The smallest and the largest value of the kernel. With it, the interval stays in this range. */
1209
+ readonly range?: readonly [low: number, high: number];
1210
+ }
1211
+ /** The mean of the kernel over all the sets of `r` units of the population, with its interval. */
1212
+ interface UStatisticMean {
1213
+ /** The U-statistic: the mean of the kernel over the sets of `r` units of the sample. */
1214
+ readonly estimate: number;
1215
+ readonly low: number;
1216
+ readonly high: number;
1217
+ }
1218
+ /** The result of `uStatisticInterval`. The total is the mean of the kernel times `subsets`. */
1219
+ interface UStatisticInterval {
1220
+ /** The estimate of the total of the population: `S * C(n, r) / C(m, r)`, with `S` the total of the sample. */
1221
+ readonly estimate: number;
1222
+ readonly low: number;
1223
+ readonly high: number;
1224
+ readonly level: number;
1225
+ /** The method that made the interval. It is not `requested` after a fallback or a choice of the method `"auto"`. */
1226
+ readonly method: "conservative" | "tight";
1227
+ /** The method of the options. */
1228
+ readonly requested: UStatisticMethod;
1229
+ /** The mean of the kernel, with its interval. */
1230
+ readonly mean: UStatisticMean;
1231
+ /** The number of sets of `r` units in the population, `C(n, r)`. */
1232
+ readonly subsets: number;
1233
+ /** The standard error of the total. Only an interval of the method `"tight"` has it. */
1234
+ readonly standardError?: number;
1235
+ /** The degrees of freedom of the t quantile, `m - 1`. Only an interval of the method `"tight"` has it. */
1236
+ readonly df?: number;
1237
+ }
1238
+ /**
1239
+ * This function gives the interval of a total over all the sets of `r` units of a population. The data is a uniform
1240
+ * sample of `m` of the `n` units, without replacement. An example is the count of crossings between all pairs of
1241
+ * routes. The input is the total of each sampled unit: the sum of the kernel over the sets of `r` sampled units
1242
+ * that hold the unit. Thus the sum of the totals is `r * S`, with `S` the total of the sample. The kernel is
1243
+ * symmetric.
1244
+ *
1245
+ * The estimate is `S * C(n, r) / C(m, r)`. It is the U-statistic `U = S / C(m, r)` times `C(n, r)`. At `r = 1`,
1246
+ * the estimate is `n / m` times the sum of the sample. When `m` is `n`, the interval is the estimate.
1247
+ *
1248
+ * The method `"conservative"` uses the inequality of Hoeffding (1963) for U-statistics, with `k = floor(m / r)`. The
1249
+ * half width of the mean is `(b - a) * sqrt(ln(2 / (1 - level)) / (2 k))`, with `[a, b]` the range of the kernel.
1250
+ * The bound is also true for a sample without replacement (Ai, Kuželka and Wang 2022, Blanc 2023 Theorem 6).
1251
+ * Thus the interval holds at each `m`. It is wide at a small `m`.
1252
+ *
1253
+ * The method `"tight"` uses the jackknife variance of `U`, from the totals only, times the finite population
1254
+ * correction `1 - m / n`. The interval is `U` plus or minus the t quantile with `m - 1` degrees of freedom, times
1255
+ * the standard error.
1256
+ *
1257
+ * The correction comes from the inclusion probabilities of a sample without replacement. The variance of the linear
1258
+ * part of `U` (its Hájek projection) gets exactly the factor `1 - m / n`. The variance of the remainder gets a
1259
+ * smaller factor, near `(1 - m / n)^2`, relative to an independent sample. For `r = 2` this factor is
1260
+ * `(n - m)(n - m - 1) / ((n - 2)(n - 3))`. Thus this estimate of the variance is exact for a linear kernel, and
1261
+ * larger than the variance for other kernels. The tests read the two facts over all samples of small populations.
1262
+ *
1263
+ * The method `"tight"` does not give an interval of width 0 when `m` is less than `n`. When all the totals are
1264
+ * equal, the jackknife variance is 0. Then the function uses the method `"conservative"` for the sample, and the
1265
+ * result has `method: "conservative"`. Without `range`, the function throws a `RangeError` for this sample.
1266
+ *
1267
+ * The method `"tight"` has no proof of its coverage. The tests use 200 samples of made-up populations at the level
1268
+ * 0.95. The table gives the hits of 200 for each population `n` and sample `m`. Each count includes the fallback.
1269
+ *
1270
+ * | n / m | sparse | crossings | skewed |
1271
+ * | --- | --- | --- | --- |
1272
+ * | 40 / 8 | 200 | 200 | 183 |
1273
+ * | 40 / 10 | 200 | 200 | 187 |
1274
+ * | 40 / 12 | 200 | 183 | 189 |
1275
+ * | 40 / 20 | 180 | 183 | 188 |
1276
+ * | 40 / 36 | 192 | 189 | 193 |
1277
+ * | 60 / 8 | 200 | 200 | 181 |
1278
+ * | 60 / 10 | 200 | 200 | 180 |
1279
+ * | 60 / 12 | 200 | 195 | 186 |
1280
+ * | 60 / 20 | 184 | 190 | 183 |
1281
+ * | 60 / 40 | 186 | 193 | 180 |
1282
+ * | 120 / 8 | 200 | 200 | 177 |
1283
+ * | 120 / 10 | 200 | 192 | 175 |
1284
+ * | 120 / 12 | 200 | 189 | 178 |
1285
+ * | 120 / 20 | 191 | 193 | 182 |
1286
+ * | 120 / 40 | 194 | 192 | 185 |
1287
+ * | 120 / 60 | 195 | 189 | 185 |
1288
+ * | 120 / 108 | 187 | 185 | 190 |
1289
+ *
1290
+ * The sparse kernel holds 2% to 3% of the pairs. The skewed kernel has a few large values. At `m = 8`, the skewed
1291
+ * kernel gets 177 to 183 of 200, a coverage of 0.885 to 0.915. No row has 190 or more in each kernel.
1292
+ *
1293
+ * The method `"auto"` needs `range`. It uses the method `"tight"` when `m` is `U_STATISTIC_TIGHT_MIN_SAMPLE` or more
1294
+ * and the variance is more than 0. Otherwise, it uses the method `"conservative"`.
1295
+ *
1296
+ * The calibration study `u-statistic-interval` sets `U_STATISTIC_TIGHT_MIN_SAMPLE`. Its bar was fixed before its run.
1297
+ * The study draws 1000 samples in each cell of the 3 kernels and the 17 cells of the table. The method `"tight"`
1298
+ * qualifies at `m` when the cells with a sample of `m` or more pass two tests.
1299
+ *
1300
+ * First, no cell rejects the coverage 0.95 in a one-sided exact binomial test at alpha 0.05, with the Holm
1301
+ * correction over these cells. Second, the Wilson lower end of the pooled coverage of these cells is 0.94 or more.
1302
+ * `coverageMinSample` applies this bar.
1303
+ *
1304
+ * The set of sizes is closed upward. The constant is the smallest `m` of the grid such that each `m` of the grid from
1305
+ * this value up qualifies. A small `m` pools the good cells of the larger sizes, so it can pass while a larger `m`
1306
+ * fails alone. The upward rule keeps the method `"auto"` away from a size that failed.
1307
+ *
1308
+ * When the largest `m` fails, the constant is infinite. Until a run of the study gives a value, the constant is infinite. Thus the method `"auto"`
1309
+ * uses the method `"conservative"` at each `m` less than `n`.
1310
+ *
1311
+ * With `range`, the interval of the mean stays in `[a, b]`, and each total is in the range of a sum of
1312
+ * `C(m - 1, r - 1)` kernel values.
1313
+ *
1314
+ * @param totals - The total of each unit of the sample. The sample has more units than `r`.
1315
+ * @param options - The order, the population, the method, the level and the range of the kernel.
1316
+ * @returns The estimate and the interval of the total, and of the mean of the kernel.
1317
+ */
1318
+ export declare function uStatisticInterval(totals: readonly number[], options: UStatisticOptions): UStatisticInterval;
1319
+ export type { BinomialSide, BootstrapOptions, CalibrationLevel, CategoricalDimension, CompareOptions, Comparison, ContinuousDimension, Corrected, CountInterval, CoverageBar, CoverageCell, CoverageMinSample, CoverageReason, CoverageStep, Effect, Forecast, Interval, Kappa, LeastSquaresFit, LeastSquaresOptions, MedianInterval, ModeOptions, NoiseOptions, NoiseState, NoiseVerdict, OptionFloorOptions, OrdinalDimension, ParsedResponseRecord, PermutationOptions, PermutationResult, Proportion, QuantileInterval, QuantileMethod, ResponseAbsentPoint, ResponseBand, ResponseCurvePoint, ResponseData, ResponseDimension, ResponseDimensionBase, ResponseFactor, ResponseFault, ResponseFitOptions, ResponseFold, ResponseFoldError, ResponseHeldOutError, ResponseInputValue, ResponseMeasure, ResponseModel, ResponseModelBase, ResponsePoint, ResponseReason, ResponseRecord, ResponseSlice, ResponseSliceOptions, ResponseSlicePoint, ResponseSurface, ResponseSurfaceAbsentPoint, ResponseSurfaceOptions, ResponseSurfacePoint, ResponseTableCell, ResponseValue, ResponseViewOptions, ResponseWhen, RidgeInput, RidgeInputBase, RidgeLevelInput, RidgeNumberInput, RidgeOptions, RidgeRankInput, RidgeResponseModel, RidgeTerm, SampleTotalOptions, SideP, SmoothLaw, SmoothLawScore, Summary, TableResponseModel, TwoSamplePermutationOptions, TwoSamplePermutationResult, UStatisticInterval, UStatisticMean, UStatisticMethod, UStatisticOptions };
1094
1320
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/describe.ts","../src/regression.ts","../src/bootstrap.ts","../src/distribution.ts","../src/ridge.ts","../src/response.ts","../src/response-parse.ts","../src/response-fit.ts","../src/tests.ts","../src/agreement.ts","../src/rank.ts","../src/discrete.ts","../src/compare.ts","../src/power.ts"],"mappings":";;;;;;KAOY;;wBAmBI,OAAO;wBAIP,KAAK;;;;;wBAgBL,GAAG;;;;;;;wBAgBH,eAAe,iCAAiC,WAAW,SAAQ;;wBAkBnE,SAAS,2BAA2B,WAAW,SAAQ;;;;;wBASvD,OAAO;;UAQN;WACN;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;;wBAGK,UAAU,4BAA4B;;;;;;UC3GrC;;WAEN;;UAGM;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA;;;;;;;;;;;wBAkBK,aAAa,mCAAmC,sBAAsB,UAAS,sBAA2B;UC7BzG;;WAEN;;WAEA;;WAEA;;WAEA,SAAS;;;;;;WAMT;;;;;WAKA;;;UAIM;;WAEN;;WAEA;;WAEA;;UAGM,iBAAiB,QAAQ;;WAE/B;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;;;;;wBAOK,UAAU,GAAG,eAAe,KAAK,YAAY,iBAAiB,gBAAgB,UAAS,mBAAwB;;;;;;;;wBAsB/G,aAAa,GAAG,GAC9B,YAAY,KACZ,YAAY,KACZ,YAAY,YAAY,KAAK,YAAY,gBACzC,UAAS,mBACR;;;;;;wBAwBa,qBAAqB,8BAA8B,gCAAgC,UAAS,mBAAwB;;;;;;;wBAUpH,sBACd,mCACA,sBACA,UAAS,mBAAmB,sBAC3B;;wBAoGa,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;WACN;WACA;;WAEA;;WAEA;;;;;;;;;;wBAWK,eAAe,2BAA2B,iBAAe;;UAqBxD;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;;;;wBAUK,iBAAiB,2BAA2B,WAAW,iBAAe;;;;;;wBAsCtE,gBAAgB,WAAW;;UAW1B;WACN;WACA;;WAEA;;;;;;;wBAQK,iBAAiB,WAAW,WAAW,iBAAe;;;;;;wBA2BtD,yBAAyB,mBAAmB,WAAW,iBAAe;UCvKrE;;WAEN;;WAEA;;;;;;WAMA;;;;;;wBAgBK,WAAW,2BAA2B,UAAS;;;;;KASnD;;UAGK;;WAEN;WACA;;WAEA;;WAEA;WACA;;WAEA;WACA,OAAO;;;;;;;;wBASF,aAAa,2BAA2B,UAAS;WAA0B;IAAqC;UAW/G;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;;WAEA;;WAEA;;UAGM;;WAEN;WACA;;WAEA;;WAEA;;WAEA;;WAEA,QAAQ;;WAER;;WAEA;;WAEA;WACA,cAAc;;WAEd;WACA,cAAc;;;;;;;;wBAST,cAAc,2BAA2B,UAAS,iBAAsB;;UA6CvE;WACN;WACA;;;wBASK,MAAM,oBAAoB;;UAQzB;WACN;WACA;WACA;;WAEA;;WAEA,UAAU;;;wBAIL,YAAY,oBAAoB,aAAa;;;;;;;wBChJ7C,UAAU,WAAW;;UAgBpB;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;;;;;;;;;;;wBAiBK,YAAY,SAAS"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/describe.ts","../src/regression.ts","../src/bootstrap.ts","../src/distribution.ts","../src/ridge.ts","../src/response.ts","../src/response-parse.ts","../src/response-fit.ts","../src/tests.ts","../src/agreement.ts","../src/rank.ts","../src/discrete.ts","../src/compare.ts","../src/power.ts","../src/coverage.ts","../src/u-statistic.ts"],"mappings":";;;;;;KAOY;;wBAmBI,OAAO;wBAIP,KAAK;;;;;wBAgBL,GAAG;;;;;;;wBA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