if (FALSE) {
get("cabinet.duration")
ruler <- seq(0.45,0.75,length=10000)
g.vals <- round(dgamma(ruler,shape=sum(cabinet.duration$N),
rate=sum(cabinet.duration$N*cabinet.duration$dur)),2)
start.point <- 1000; stop.point <- length(g.vals)
durations.hpd(ruler,g.vals,start.point,stop.point)
}
Run the code above in your browser using DataLab