eval_pc_prior {makemyprior}R Documentation

Evaluate PC prior for variance proportion

Description

Evaluate PC prior for a variance proportion.

Usage

eval_pc_prior(x, obj, param, logitscale = FALSE)

Arguments

x

Values to evaluate prior in.

obj

Prior object from make_prior

param

Which weight to plot, indicated using syntax shown when printing (do not need to include the w[..] part to indicate that it is a variance proportion, but can be included). Print the prior object to see syntax for each weight.

logitscale

Is the input x on logit-scale? (default FALSE).

Value

Returns density for the given variance proportion.

Examples

ex_prior <- makemyprior_example_model()
eval_pc_prior(seq(0, 1, 0.01), ex_prior, "eps/eps_a_b")
# or:
eval_pc_prior(seq(0, 1, 0.01), ex_prior, "w[eps/eps_a_b]")


[Package makemyprior version 1.2.1 Index]