diff options
author | Justin Cally <jcally@student.unimelb.edu.au> | 2022-04-12 10:37:13 +1000 |
---|---|---|
committer | Justin Cally <jcally@student.unimelb.edu.au> | 2022-04-12 10:37:13 +1000 |
commit | c9778f287f8831c177604d15067b08d2475ad986 (patch) | |
tree | 754d9d726c7db16abd3f113acb6840f9e30d19c3 | |
parent | 54ee1f7f8f436df1d93474208e20c326776c0343 (diff) |
add double exponential function (laplace) to stan call
-rw-r--r-- | inst/stan/include/functions_priors.stan | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inst/stan/include/functions_priors.stan b/inst/stan/include/functions_priors.stan index ae573da..c0ef956 100644 --- a/inst/stan/include/functions_priors.stan +++ b/inst/stan/include/functions_priors.stan @@ -11,6 +11,8 @@ real lp_single_prior(vector x, int dist, row_vector pars1, out += logistic_lpdf(x | pars1, pars2); } else if(dist == 5){ out += gamma_lpdf(x | pars1, pars2); + } else if(dist == 6){ + out += double_exponential_lpdf(x | pars1, pars2); } return out; } |