hist.bayesian.vam: Plot the posterior distribution of the parameters for a...

View source: R/vam.R

hist.bayesian.vamR Documentation

Plot the posterior distribution of the parameters for a virtual age model

Description

For bayesian.vam object, plot the posterior distribution of the parameters. This posterior distribution corresponds to the one sampled with run.bayesian.vam.

Usage

hist.bayesian.vam(obj,i=1,...)

Arguments

obj

an object of class bayesian.vam specifying the virtual age model considered, the prior distribution of the parameters and the data set of observations.

i

an optional argument specifying the index of the parameter for which the posterior distribution is plotted.

...

some supplementary arguments for the generic hist function.

Author(s)

R. Drouilhet et L. Doyen

See Also

bayesian.vam to define the Bayesian object. run.bayesian.vam to compute the Bayesian method. summary.bayesian.vam to produce a result summary of the Bayesian method. coef.bayesian.vam to extract the parameters estimation values of the Bayesian method. plot.bayesian.vam for plotting estimating characteristics of the model.

Examples

simARAInf<-sim.vam(  ~ (ARAInf(.4) | Weibull(.001,2.5)))
simData<-simulate(simARAInf,30)
bayesARAInf <- bayesian.vam(Time & Type ~ (ARAInf(~Unif(0,1)) | Weibull(~Unif(0,1),~Unif(2,4))),data=simData)
run(bayesARAInf,profile.alpha=TRUE)
hist(bayesARAInf,3,main="Posterior distribution of rho")

rcqls/VAM documentation built on Jan. 14, 2024, 9:07 p.m.