R/print.bgpd.R

Defines functions `print.bgpd`

`print.bgpd` <-
function( x , print.seed=FALSE, ...){

	print( x$call )
	if ( print.seed ){
		cat( "Random seed:", x$seed, "\n" )
	}
	cat( "Acceptance rate: ", format(x$acc) )

	cat( "\n\nMAP estimates:\n" )
    co <- coef(x)
    map <- x$map$coefficients
    names(map) <- names(co)

	print( map , ... )
	cat( "\nPosterior means:\n" )
	m <- coef(x)
	print( m , ... )
	
	invisible()
}

Try the texmex package in your browser

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

texmex documentation built on May 2, 2019, 4:56 p.m.