map_pi_rho: Estimate pi and mixture proportions under null model

Description Usage Arguments

View source: R/map_pi_rho.R

Description

This function is called by est_cause_params and generally does not need to be directly accessed. Estimate the MAP for rho and the mixing proportions using coordinate descent. Causal effect (gamma) and the effect of U (eta) are fixed at zero.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
map_pi_rho(
  X,
  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) },
  optmethod = c("mixSQP", "mixIP"),
  control = list(),
  warm = FALSE
)

Arguments

X

An object of class cause_data containing data for the two traits.

mix_grid

An object of class cause_grid containing variance pair candidates

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/cause documentation built on Dec. 25, 2021, 10 p.m.