R/Plot.post.pred.R

Defines functions Plot.post.pred

Documented in Plot.post.pred

Plot.post.pred <-
function(x,...)
{
	x.new <- distr(x=x$iter,dist=x$input$dist,param=x$sims,type='r')
	hist(x$input$x.info[,'x'],freq=FALSE,main='Posterior predictive distribution',xlab='',...)
	lines(density(x.new),col='red')
}

Try the FAmle package in your browser

Any scripts or data that you put into this service are public.

FAmle documentation built on March 18, 2022, 5:29 p.m.