powered by
Adds lines to density plot used in Practical 11.3
add.exp.lines(exp.out, i, B = 10)
Gibbs sampler output
Variable index (=1, 2)
Upper bound for truncated exponential density
Anthony Davison
B <-10; I <- 15; S <- 500 exp.out <- exp.gibbs(B=B,I=I,S=S) hist(exp.out[1,,I],prob=TRUE,nclass=15,xlab="u1",ylab="PDF",xlim=c(0,B),ylim=c(0,1)) add.exp.lines(exp.out,1)
Run the code above in your browser using DataLab