View source: R/hyper_quadrature.R
| tulpa_hyper_copy_slab_density | R Documentation |
The proper density tulpa uses for the copy scale's continuum: an
exponential, the penalized-complexity prior for a scale parameter with its
base model at zero (Simpson et al. 2017). The rate is set by putting 5% of
the prior mass above upper, so a caller that reads this off a fit's own
declared grid gets the exact rate the outer integration used – rather
than restating a PC-prior rate that could silently drift from it.
tulpa_hyper_copy_slab_density(upper)
upper |
The largest declared node of the copy-scale axis. |
A function log p(x) = log(lambda) - lambda * x, or NULL if
upper is not a finite positive number.
tulpa_hyper_check_copy_slab(), tulpa_joint_axis_specs_from_grid()
lp <- tulpa_hyper_copy_slab_density(upper = 2)
lp(c(0.1, 1, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.