Description Usage Arguments Examples
View source: R/generate_priors.R
This function generates a list of functions and a list of parameters
to be used as priors in run_mcmc()
. If nothing is supplied,
default priors are returned.
1 2 3 |
f_beta |
the function to be used as a prior of beta. The default is Cauchy. |
f_b |
the function to be used as a prior of b. The default is Normal. |
f_s |
the function to be used as a prior of s. The default is Normal. |
f_rho_1 |
the function to be used as a prior of rho_1. The default is Uniform. |
f_rho_2 |
the function to be used as a prior of rho_2. The default is Uniform. |
p_beta |
a vector with parameters for the prior of beta. The default is c(0, 4). |
p_b |
a vector with parameters for the prior of b. The default is c(1, 0.5). |
p_s |
a vector with parameters for the prior of s. The default is c(1, 0.5). |
p_rho_1 |
a vector with parameters for the prior of rho_1. The default is c(0, 1). |
p_rho_2 |
a vector with parameters for the prior of rho_2. The default is c(0, 1). |
1 2 3 4 5 | ## use default priors
generate_priors()
## modify prior for beta
generate_priors(f_beta = dnorm, p_beta = c(1, 0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.