cause_grid_approx_v7: CAUSE with grid approximation and fixed rho

Description Usage Arguments

Description

CAUSE with grid approximation and fixed rho

Usage

1
2
3
4
5
cause_grid_approx_v7(dat, mix_grid, rho, gamma_range = c(-1, 1),
  gamma_prime_range = c(-1, 1), n_gamma = 100, n_gamma_prime = 100,
  n_q = 100, gamma_prior_func = function(b) {     dnorm(b, 0, 0.6) },
  gamma_prime_prior_func = function(b) {     dnorm(b, 0, 0.6) },
  q_prior_func = function(q) {     dbeta(q, 0.1, 1) })

Arguments

dat

Data (data.frame)

mix_grid

Grid of mixture parameters. Will be estimated if not provided.

rho

rho

gamma_prior_func

prior function for b. Defaults to N(0, 0.6)

q_prior_func

prior function for q. Defaults to Beta(0.1, 1)

seed

Seed. Optional.

z_prior_func

optional. Unneccessary if you provide rho. Defaults to N(0, 0.5).

gvals

Grid of values for gamma and gamma_prime

qvals

Grid of values for q


jean997/sherlockAsh documentation built on May 18, 2019, 11:45 p.m.