add.exp.lines | R Documentation |
Adds lines to density plot used in Practical 11.3
add.exp.lines(exp.out, i, B = 10)
exp.out |
Gibbs sampler output |
i |
Variable index (=1, 2) |
B |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.