Skip to content

Commit d3ef96b

Browse files
committed
change missings
1 parent 673a710 commit d3ef96b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

vignettes/Chapter07.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ sampler, we require the missing time points to be far enough apart. This
378378
restriction is not substantial, though.)
379379

380380
```{r}
381-
missing <- c(62)
381+
missing <- seq(10, 100, by = 10)
382382
yaug <- logret
383383
yaug[missing] <- NA
384384
```
@@ -471,7 +471,7 @@ if (pdfplots) {
471471
par(mfrow = c(1, 1), mar = c(2.6, 1.5, 1.5, .1), mgp = c(1.5, .5, 0), lwd = 1.5)
472472
yaug[missing] <- NA
473473
474-
where <- seq(min(missing) - 3, max(missing) + 3)
474+
where <- seq(max(missing) - 33, max(missing) + 3)
475475
plot(where, yaug[where], type = "l", ylim = range(ymisses[, i]),
476476
xlab = "Time", ylab = "", main = "U.S. GDP growth")
477477
for (i in seq_along(missing)) {
@@ -491,8 +491,8 @@ We start by estimating a model where all equations containing missing data are
491491
simply dropped.
492492

493493
```{r}
494-
y <- tail(yaug, -2)
495494
Xy <- ARdesignmatrix(yaug, 2)
495+
y <- tail(yaug, -2)
496496
containsNA <- apply(is.na(cbind(y, Xy)), 1, any)
497497
yred <- y[!containsNA]
498498
Xyred <- Xy[!containsNA, ]

0 commit comments

Comments
 (0)