Skip to content

Commit

Permalink
renamed variable names (la to ms)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsuuraKentaro committed Dec 24, 2016
1 parent 4d58769 commit 5efae2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chap12/fig12-10-right.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
library(Nippon)

load('output/result-model12-14.RData')
la <- rstan::extract(fit)
est <- apply(la$r, 2, mean)
ms <- rstan::extract(fit)
est <- apply(ms$r, 2, mean)
est[est > 19] <- 19
cols <- lattice::level.colors(
est, at=seq(9, 19, length=81),
Expand Down
4 changes: 2 additions & 2 deletions chap12/fig12-7-left.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ library(ggplot2)
source('../common.R')

load('output/result-model12-11.RData')
la <- rstan::extract(fit)
ms <- rstan::extract(fit)

d_est <- data.frame.quantile.mcmc(x=1:I, y_mcmc=la$Y_mean, probs=c(0.1, 0.25, 0.5, 0.75, 0.9))
d_est <- data.frame.quantile.mcmc(x=1:I, y_mcmc=ms$Y_mean, probs=c(0.1, 0.25, 0.5, 0.75, 0.9))
p <- ggplot.5quantile(data=d_est, size=0.5)
p <- p + geom_point(data=d, aes(x=X, y=Y), shape=1, size=2)
p <- p + labs(x='i', y='Y[i]')
Expand Down
4 changes: 2 additions & 2 deletions chap12/fig12-7-right.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ library(ggplot2)
source('../common.R')

load('output/result-model12-12.RData')
la <- rstan::extract(fit)
ms <- rstan::extract(fit)

d_est <- data.frame.quantile.mcmc(x=1:I, y_mcmc=la$Y_mean, probs=c(0.1, 0.25, 0.5, 0.75, 0.9))
d_est <- data.frame.quantile.mcmc(x=1:I, y_mcmc=ms$Y_mean, probs=c(0.1, 0.25, 0.5, 0.75, 0.9))
p <- ggplot.5quantile(data=d_est, size=0.5)
p <- p + geom_point(data=d, aes(x=X, y=Y), shape=1, size=2)
p <- p + labs(x='i', y='Y[i]')
Expand Down

0 comments on commit 5efae2b

Please sign in to comment.