View source: R/helper_functions.R
g_bnp_sparse_means | R Documentation |
Compute one posterior draw from the smoothed transformation
implied by (separate) Bayesian bootstrap models for the CDFs
of y
and X
.
This function is for the special case of the sparse means model.
g_bnp_sparse_means(
y,
psi,
pi_inc,
zgrid = NULL,
sigma_epsilon = 1,
approx_Fz = FALSE
)
y |
|
psi |
prior variance for the slab component |
pi_inc |
prior inclusion probability |
zgrid |
optional vector of grid points for evaluating the CDF
of z ( |
sigma_epsilon |
latent standard deviation; set to one for identifiability |
approx_Fz |
logical; if TRUE, use a normal approximation for |
A smooth monotone function which can be used for evaluations of the transformation at each posterior draw.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.