PriorAndPosterior {brr} | R Documentation |
Generic functions for prior and posterior distributions
dprior(model, parameter, ...)
pprior(model, parameter, ...)
qprior(model, parameter, ...)
rprior(model, parameter, ...)
sprior(model, parameter, ...)
dpost(model, parameter, ...)
ppost(model, parameter, ...)
qpost(model, parameter, ...)
rpost(model, parameter, ...)
spost(model, parameter, ...)
model |
an object of class |
parameter |
a character string among |
... |
the first argument of the function called |
model <- Brr(a=2, b=4)
dprior(model, "mu", 1:3)
# the same:
dprior_mu(mu=1:3, a=2, b=4)
## Not run:
dprior(model, "lambda", 1:3)
## End(Not run)
model <- model(c=4, d=5, S=10, T=10)
dprior(model, "lambda", 1:3)
model <- model(x=5, y=10)
ppost(model, "phi", 1)
model <- Brr()
## Not run:
ppost(model, "phi", 1)
## End(Not run)
model <- model(x=5, y=10, S=3, T=10)
ppost(model, "phi", 1)