hist.bayesian.vam | R Documentation |
For bayesian.vam
object, plot the posterior distribution of the parameters. This posterior distribution corresponds to the one sampled with run.bayesian.vam
.
hist.bayesian.vam(obj,i=1,...)
obj |
an object of class |
i |
an optional argument specifying the index of the parameter for which the posterior distribution is plotted. |
... |
some supplementary arguments for the generic |
R. Drouilhet et L. Doyen
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.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.