coef.bayesian.vam: Compute a Bayesian point estimate of the parameters of a...

View source: R/vam.R

coef.bayesian.vamR Documentation

Compute a Bayesian point estimate of the parameters of a virtual age model

Description

For bayesian.vam object, compute a Bayesian estimate of the parameters. This estimate corresponds to the mean of the posterior distribution sampled with run.bayesian.vam.

Usage

coef.bayesian.vam(obj,new.run=FALSE,...)

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.

new.run

an optional argument specifying if run.bayesian.vam methods has to be relaunched even if it has already been executed.

...

some supplementary arguments for the run.bayesian.vam method.

Value

A numeric vector of the estimates corresponding respectively to the parameters of time to failure distribution of the new unmaintained system, of the CM effect model and finally of the PM effect models (if defined and in the same order as they appear in the obj formula).

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. hist.bayesian.vam for plotting the histogram of the posterior distribution of the parameters. 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)
coef(bayesARAInf)
run(bayesARAInf,profile.alpha=TRUE)
coef(bayesARAInf)
coef(bayesARAInf,new.run=TRUE,par0=c(1e-2,2.5,0.5),fixed=2)

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