map_pi_rho: Try to find the MAP for pi and rho using coordinate descent

Description Usage Arguments

View source: R/map_pi_rho.R

Description

This is a simplified version of get_map

Usage

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) })

Arguments

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)


jean997/sherlockAsh documentation built on Oct. 6, 2018, 3:14 p.m.