@@ -47,7 +47,7 @@ expect_true(isTRUE(all.equal(c(m2c.imps[[1]]$indirect["ft.NWBIR74"],
4747# Total impact is linear combination
4848lc <- summary(multcomp :: glht(m2c , linfct = c(" east + lag.east = 0" )))
4949expect_true(isTRUE(all.equal(c(m2c.imps [[1 ]]$ total [" east" ],
50- summary(m2c.imps )$ semat [" east" , " Total" ]),
50+ summary(m2c.imps )$ semat [" east dy/dx " , " Total" ]),
5151 c(lc $ test $ coefficients ,
5252 lc $ test $ sigma ),
5353 tolerance = 1e-5 , check.attributes = FALSE )))
@@ -74,9 +74,9 @@ expect_true(isTRUE(all.equal(c(m2d.imps[[1]]$indirect["ft.NWBIR74"],
7474lc1 <- summary(multcomp :: glht(m2d , linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
7575lc2 <- summary(multcomp :: glht(m2d , linfct = c(" east + lag.east = 0" )))
7676expect_true(isTRUE(all.equal(c(m2d.imps [[1 ]]$ total [" ft.NWBIR74" ],
77- summary(m2d.imps )$ semat [" ft.NWBIR74" , " Total" ],
77+ summary(m2d.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ],
7878 m2d.imps [[1 ]]$ total [" east" ],
79- summary(m2d.imps )$ semat [" east" , " Total" ]),
79+ summary(m2d.imps )$ semat [" east dy/dx " , " Total" ]),
8080 c(lc1 $ test $ coefficients ,
8181 lc1 $ test $ sigma ,
8282 lc2 $ test $ coefficients ,
@@ -104,9 +104,9 @@ expect_true(isTRUE(all.equal(c(m2e.imps[[1]]$indirect["ft.NWBIR74"],
104104lc1 <- summary(multcomp :: glht(m2e , linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
105105lc2 <- summary(multcomp :: glht(m2e , linfct = c(" east + lag.east = 0" )))
106106expect_true(isTRUE(all.equal(c(m2e.imps [[1 ]]$ total [" ft.NWBIR74" ],
107- summary(m2e.imps )$ semat [" ft.NWBIR74" , " Total" ],
107+ summary(m2e.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ],
108108 m2e.imps [[1 ]]$ total [" east" ],
109- summary(m2e.imps )$ semat [" east" , " Total" ]),
109+ summary(m2e.imps )$ semat [" east dy/dx " , " Total" ]),
110110 c(lc1 $ test $ coefficients ,
111111 lc1 $ test $ sigma ,
112112 lc2 $ test $ coefficients ,
@@ -135,9 +135,9 @@ lc1 <- summary(multcomp::glht(m2f,
135135 linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
136136lc2 <- summary(multcomp :: glht(m2f , linfct = c(" east + lag.east = 0" )))
137137expect_true(isTRUE(all.equal(c(m2f.imps [[1 ]]$ total [" ft.NWBIR74" ],
138- summary(m2f.imps )$ semat [" ft.NWBIR74" , " Total" ],
138+ summary(m2f.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ],
139139 m2f.imps [[1 ]]$ total [" east" ],
140- summary(m2f.imps )$ semat [" east" , " Total" ]),
140+ summary(m2f.imps )$ semat [" east dy/dx " , " Total" ]),
141141 c(lc1 $ test $ coefficients ,
142142 lc1 $ test $ sigma ,
143143 lc2 $ test $ coefficients ,
@@ -163,7 +163,7 @@ expect_true(isTRUE(all.equal(m3b.imps[[1]]$indirect,
163163# Total impact is linear combination
164164lc <- summary(multcomp :: glht(m3b , linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
165165expect_true(isTRUE(all.equal(c(m3b.imps [[1 ]]$ total ,
166- summary(m3b.imps )$ semat [" ft.NWBIR74" , " Total" ]),
166+ summary(m3b.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ]),
167167 c(lc $ test $ coefficients ,
168168 lc $ test $ sigma ),
169169 tolerance = 1e-5 , check.attributes = FALSE )))
@@ -191,9 +191,9 @@ lc1 <- summary(multcomp::glht(m3c,
191191 linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
192192lc2 <- summary(multcomp :: glht(m3c , linfct = c(" east + lag.east = 0" )))
193193expect_true(isTRUE(all.equal(c(m3c.imps [[1 ]]$ total [" ft.NWBIR74" ],
194- summary(m3c.imps )$ semat [" ft.NWBIR74" , " Total" ],
194+ summary(m3c.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ],
195195 m3c.imps [[1 ]]$ total [" east" ],
196- summary(m3c.imps )$ semat [" east" , " Total" ]),
196+ summary(m3c.imps )$ semat [" east dy/dx " , " Total" ]),
197197 c(lc1 $ test $ coefficients ,
198198 lc1 $ test $ sigma ,
199199 lc2 $ test $ coefficients ,
@@ -222,9 +222,9 @@ lc1 <- summary(multcomp::glht(m3e,
222222 linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
223223lc2 <- summary(multcomp :: glht(m3e , linfct = c(" east + lag.east = 0" )))
224224expect_true(isTRUE(all.equal(c(m3e.imps [[1 ]]$ total [" ft.NWBIR74" ],
225- summary(m3e.imps )$ semat [" ft.NWBIR74" , " Total" ],
225+ summary(m3e.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ],
226226 m3e.imps [[1 ]]$ total [" east" ],
227- summary(m3e.imps )$ semat [" east" , " Total" ]),
227+ summary(m3e.imps )$ semat [" east dy/dx " , " Total" ]),
228228 c(lc1 $ test $ coefficients ,
229229 lc1 $ test $ sigma ,
230230 lc2 $ test $ coefficients ,
@@ -258,9 +258,9 @@ lc1 <- summary(multcomp::glht(m3f,
258258 linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
259259lc2 <- summary(multcomp :: glht(m3f , linfct = c(" east + lag.east = 0" )))
260260expect_true(isTRUE(all.equal(c(m3f.imps [[1 ]]$ total [" ft.NWBIR74" ],
261- summary(m3f.imps )$ semat [" ft.NWBIR74" , " Total" ],
261+ summary(m3f.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ],
262262 m3f.imps [[1 ]]$ total [" east" ],
263- summary(m3f.imps )$ semat [" east" , " Total" ]),
263+ summary(m3f.imps )$ semat [" east dy/dx " , " Total" ]),
264264 c(lc1 $ test $ coefficients ,
265265 lc1 $ test $ sigma ,
266266 lc2 $ test $ coefficients ,
@@ -289,9 +289,9 @@ lc1 <- summary(multcomp::glht(m3fb,
289289 linfct = c(" ft.NWBIR74 + lag.ft.NWBIR74 = 0" )))
290290lc2 <- summary(multcomp :: glht(m3fb , linfct = c(" east + lag.east = 0" )))
291291expect_true(isTRUE(all.equal(c(m3fb.imps [[1 ]]$ total [" ft.NWBIR74" ],
292- summary(m3fb.imps )$ semat [" ft.NWBIR74" , " Total" ],
292+ summary(m3fb.imps )$ semat [" ft.NWBIR74 dy/dx " , " Total" ],
293293 m3fb.imps [[1 ]]$ total [" east" ],
294- summary(m3fb.imps )$ semat [" east" , " Total" ]),
294+ summary(m3fb.imps )$ semat [" east dy/dx " , " Total" ]),
295295 c(lc1 $ test $ coefficients ,
296296 lc1 $ test $ sigma ,
297297 lc2 $ test $ coefficients ,
@@ -333,7 +333,7 @@ expect_true(isTRUE(all.equal(c(m1c.imps[[1]]$indirect["ft.NWBIR74"],
333333# Total impact is linear combination
334334lc <- summary(multcomp :: glht(m1c , linfct = c(" east + lag.east = 0" )))
335335expect_true(isTRUE(all.equal(c(m1c.imps [[1 ]]$ total [" east" ],
336- summary(m1c.imps )$ semat [" east" , " Total" ]),
336+ summary(m1c.imps )$ semat [" east dy/dx " , " Total" ]),
337337 c(lc $ test $ coefficients ,
338338 lc $ test $ sigma ),
339339 tolerance = 1e-5 , check.attributes = FALSE )))
@@ -359,7 +359,7 @@ expect_true(isTRUE(all.equal(c(m1d.imps[[1]]$indirect["ft.NWBIR74"],
359359# Total impact is linear combination
360360lc <- summary(multcomp :: glht(m1d , linfct = c(" east + lag.east = 0" )))
361361expect_true(isTRUE(all.equal(c(m1d.imps [[1 ]]$ total [" east" ],
362- summary(m1d.imps )$ semat [" east" , " Total" ]),
362+ summary(m1d.imps )$ semat [" east dy/dx " , " Total" ]),
363363 c(lc $ test $ coefficients ,
364364 lc $ test $ sigma ),
365365 tolerance = 1e-5 , check.attributes = FALSE )))
@@ -384,7 +384,7 @@ expect_true(isTRUE(all.equal(c(m1e.imps[[1]]$indirect["ft.NWBIR74"],
384384# Total impact is linear combination
385385lc <- summary(multcomp :: glht(m1e , linfct = c(" east + lag.east = 0" )))
386386expect_true(isTRUE(all.equal(c(m1e.imps [[1 ]]$ total [" east" ],
387- summary(m1e.imps )$ semat [" east" , " Total" ]),
387+ summary(m1e.imps )$ semat [" east dy/dx " , " Total" ]),
388388 c(lc $ test $ coefficients ,
389389 lc $ test $ sigma ),
390390 tolerance = 1e-5 , check.attributes = FALSE )))
@@ -409,7 +409,7 @@ expect_true(isTRUE(all.equal(c(m1f.imps[[1]]$indirect["ft.NWBIR74"],
409409# Total impact is linear combination
410410lc <- summary(multcomp :: glht(m1f , linfct = c(" east + lag.east = 0" )))
411411expect_true(isTRUE(all.equal(c(m1f.imps [[1 ]]$ total [" east" ],
412- summary(m1f.imps )$ semat [" east" , " Total" ]),
412+ summary(m1f.imps )$ semat [" east dy/dx " , " Total" ]),
413413 c(lc $ test $ coefficients ,
414414 lc $ test $ sigma ),
415415 tolerance = 1e-5 , check.attributes = FALSE )))
0 commit comments