Skip to content

Commit 7b0db8f

Browse files
committed
test: fix due to reversion of lag
1 parent d197a3d commit 7b0db8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/correlation.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('correlationMetrics', () => {
55
test('Deaths vs. CLI correlations should equal what was published in the blog post', async () => {
66
let expected_metrics = {
77
r2At0: 0.5,
8-
lagAtMaxR2: 20,
8+
lagAtMaxR2: -20,
99
r2AtMaxR2: 0.81,
1010
};
1111
let actual_metrics = generateCorrelationMetrics(deathsTestData, cliTestData);
@@ -17,7 +17,7 @@ describe('correlationMetrics', () => {
1717
test('Signals with different date ranges should correlate on the union of their dates.', async () => {
1818
let expected_metrics = {
1919
r2At0: -0.59,
20-
lagAtMaxR2: 28,
20+
lagAtMaxR2: -28,
2121
r2AtMaxR2: -0.07,
2222
};
2323
let actual_metrics = generateCorrelationMetrics(cases_national, safegraph_full_time_national);

0 commit comments

Comments
 (0)