Description Usage Arguments Examples
Title
1 2 3 4 5 6 7 8 9 10 | specify.simple.prior(
p,
qdist,
qlower,
qupper,
sigma.dist,
sigma.lower,
sigma.upper,
distribution
)
|
p |
|
qdist |
|
qlower |
|
qupper |
|
sigma.dist |
|
sigma.lower |
|
sigma.upper |
|
distribution |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | ## Not run:
# Specify prior distribution characteristics for the
# \code{bearingcage} data using a non-informative quantile
# and a noninformative sigma
prior.spec1 <-
specify.simple.prior(p = .01,
qdist = "loguniform",
qlower = 100,
qupper = 5000,
sigma.dist = "lognormal",
sigma.lower = 0.2,
sigma.upper = 0.5,
distribution = "Weibull")
# Specify prior distribution characteristics for the
# \code{bearingcage} data using a noninformative quantile
# and an informative sigma
prior.spec2 <-
specify.simple.prior(p = .01,
qdist = "loguniform",
qlower = 1000,
qupper = 1400,
sigma.dist = "lognormal",
sigma.lower = 1.5,
sigma.upper = 2.5,
distribution = "Weibull")
# Specify prior distribution characteristics for the
# \code{bearingcage} data using an informative quantile
# and an informative sigma
prior.spec3 <-
specify.simple.prior(p = .01,
qdist = "lognormal",
qlower = 1000,
qupper = 1400,
sigma.dist = "lognormal",
sigma.lower = 1.5,
sigma.upper = 2.5,
distribution = "Weibull")
# Create the prior distributions
prior3.bcage <-
make.prior(spec = prior.spec3,
number.in.prior = 3000)
prior.and.post3.bcage <-
get.big.posterior(prior.spec3,
BearingCage.ld)
prior.and.post3.bcage$post[1:10,]
prior.and.post3.bcage <-
make.small.posterior.object(prior.and.post3.bcage)
summarize.posterior.or.prior(prior.and.post3.bcage,
post.or.prior = "post",
task = "Marginals only",
marginal.on.sigma = T,
marginal.on.pos = F,
type.position = "Parameter",
newdata = "mu",
include.likelihood = T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.