This is a simplified version of get_map
1 2 3 | map_pi_rho(dat, mix_grid, rho_start = 0, tol = 1e-07, n.iter = 20,
null_wt = 10, z_prior_func = function(z) { dnorm(z, 0, 0.5, log =
TRUE) })
|
dat |
data |
mix_grid |
Should be a data.frame with at least columns, S1 and S2 and pi. |
rho_start |
Starting value for rho |
null_wt |
Specifies the prior weight on the first entry of grid |
z_prior_func |
Prior function for z = arctanh(rho) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.